Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to sort a dimension in a bar chart

People,

Good afternoon!

I would like to sort a dimension (hour) in a bar chart, but it's not working. Could you help me, please?

Bar Chart.jpg

5 Replies
OmarBenSalem

put your hour dimension in the sorting tab above all the other fields

shraddha_g
Partner - Master III
Partner - Master III

in Sorting Option

1st should be your Dimension (Hour)

Screenshot shows that you have sorted according to your measure.

In Sorting, Put Measure at 2nd Position

Anonymous
Not applicable
Author

It worked!!!


I'm totally newbie! 😃


Thanks, omar!

Mark_Little
Luminary
Luminary

Hi

If the above aren't working correctly, it could be it is treating the values as a string.

Make sure it is at the top in your sorting.

Turn off auto sorting.

Choose sort by Expressions.

Add NUM(Hour) or what ever the dimension is called.

Mark

ankitaag
Partner - Creator III
Partner - Creator III

Hi,

In the sorting tab, move the hour dimension to the first and select "sort numerically" - ascending.

"Sort numerically" will work if he hour dimension is numeric. If it is string then you need to convert it into num using num#.

Thanks!