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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
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(MyDateafter 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?

1 Solution

Accepted Solutions
sunny_talwar

Add MonthStart here

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

View solution in original post

2 Replies
sunny_talwar

Add MonthStart here

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

MalcolmCICWF
Creator III
Creator III
Author

This actually worked perfect, thank you.