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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
MalcolmCICWF
Creator III
Creator III

Order by/Sort by Problems

I am trying to get two fields in the YYYY-MMM formatting to sort newest to oldest without any luck. I format them as Date(MyDate,'YYYY-MMM')  but when I display it in a chat with a simple count of the data it duplicates the Year/Months...

I also tried year(MyDate)&'-'&month(MyDate)  after doing an "Order By' in the table below.... this works... but I have two dates I am doing this for. It of course only orders by the first one I list.

Is there a sort expression I can use in the chart itself to sort by a date field? Sort By---> Expression----> Desc----> and maybe =MyDate or something?

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

Add MonthStart here

Date(MonthStart(MyDate),'YYYY-MMM')

View solution in original post

2 Replies
sunny_talwar
MVP
MVP

Add MonthStart here

Date(MonthStart(MyDate),'YYYY-MMM')

MalcolmCICWF
Creator III
Creator III
Author

This actually worked perfect, thank you.