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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
shinnickr
Creator II
Creator II

Sorting dates on a concatenated dimension.

Hello,

I am trying to sort dates based on a concatenated dimension.  This is my expression:

=Month([Discharge Date]) & ' ' & Year([Discharge Date])

But when put into a graph, the dates aren't sorted correctly. 

DatesSort.PNG

I've tried a wide variety of different sort options, using Dual() (though maybe I wasn't using it correctly), and a few different expressions to attempt to sort this correctly.

Any help would be greatly appreciated!

Thank you

1 Solution

Accepted Solutions
jpenuliar
Partner - Specialist III
Partner - Specialist III

try using MonthName() instead of concat.

MonthName([Discharge Date])

View solution in original post

3 Replies
jpenuliar
Partner - Specialist III
Partner - Specialist III

try using MonthName() instead of concat.

MonthName([Discharge Date])

jpenuliar
Partner - Specialist III
Partner - Specialist III

Qlik Help has this fully covered:

monthname - script and chart function ‒ Qlik Sense

shinnickr
Creator II
Creator II
Author

Ah excellent.  I tried using MonthName() but still using the concatenation.  I didn't try using it just by itself.

Thank you very much!!