Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
nicouek
Creator
Creator

Sorting Months

Hi, all 

I need a bit of help with a problem.

nicouek_0-1719319690759.png

I have developed this report last year to show count of sales per month for the past 6 months , it's doing that just fine... (FYI aggregation for past six months was done using past -180 days NOT months).

The issue I am having is that, my months on the X axis are not displaying in the desired order, JAN and FEB are 2024; SEPT, OCT, NOV, and DEC are 2023. I would like last year QUARTER to be displayed before JAN  and FEB how do I setup for the visualization to follow the right calendar order?

Thank you 

Labels (1)
1 Solution

Accepted Solutions
marksouzacosta
Partner - Specialist
Partner - Specialist

Hi @nicouek,

Change the sort of your Month Dimension to be by Month Year, like the example below:

marksouzacosta_0-1719322775986.png

Regards,

Mark Costa

Read more at Data Voyagers - datavoyagers.net

View solution in original post

6 Replies
marksouzacosta
Partner - Specialist
Partner - Specialist

Hi @nicouek,

Change the sort of your Month Dimension to be by Month Year, like the example below:

marksouzacosta_0-1719322775986.png

Regards,

Mark Costa

Read more at Data Voyagers - datavoyagers.net
lennart_mo
Contributor III
Contributor III

I'm guessing you used Month(PostingDate) for your Dimension.

If you want this to be the case still you can try using the Dual() function, where you can define a text and a number value. The text will be displayed but the number is used to calculate and sort the data.

So your formula could look like this:

=DUAL(Month(PostingDate), MonthName(PostingDate))

anat
Master
Master

you may try one of the below method

MonthName(date#(YourField,'MMM-YY'))

or
year * 100 + month

or
MonthName(date)

nicouek
Creator
Creator
Author

Hi, @marksouzacosta,

It worked beautifully!

Thank you

nicouek_0-1719326634344.png

 

nicouek
Creator
Creator
Author

Thank you will try that later!

Thanks

nicouek
Creator
Creator
Author

Thank you very much, I found a solution for now, however will try your suggestion later.

Thank you