Quantcast
Viewing all articles
Browse latest Browse all 13053

Sorting multi-series column chart by count field

Not sure why this is so perplexing, but or the life of me I can't get this to sort how I want.

The following chart syntax: |chart count(C) as Count by B,C

where B is a Month field, C represents 5 separate values and Count is the count of those values as they occur by Month.

The resulting multi-series chart displays with the correct data, but regardless of how I try and sort, the Month is sorted correctly, but within each month the columns representing the 5 counts are always sorted by the alpha value of "C" and not the count.

Basically I wanted to do this | chart count(C) as Count by B,C |sort 0 B,Count

But that doesn't work.


Viewing all articles
Browse latest Browse all 13053

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>