Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to sort based on two columns?

How to sort based on two columns?

1 priority is the first column, than 2 priority is the second column????

Labels (1)
3 Replies
sunny_talwar
MVP
MVP

Is this numeric sorting or text??? Would you be able to share a sample?

Not applicable
Author

First I need to order by date, and then in each day sort by its numeric value . All Sortings are descending:

example:

This data:

14/7 -40

13/7  -30

13/7  -20

13/7  -25

12/7  -100

should be sorted to:

14/7 -40

13/7 -20

13/7 -25

13/7 -30

12/7 -100

sunny_talwar
MVP
MVP

How about something like this as your sort order expression:

Date*100000 - NumericValue