Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
sebHan
Contributor III
Contributor III

Sort month filter not alphabetically but by date order

Hey! I have a problem with one of my filters. 

My data is build up such that I have a field called "last Date in Month", where I have extracted the month with the load editor:

 

sebHan_0-1633345196153.png

Then I've added the following filter in my app:" =Concat(distinct Month, ' | ')", which displays as the following screenshot:

sebHan_1-1633345286851.png

I would like this filter to be sorted by "Jan | Feb | Mar | ....." instead.

Can anybody help me on how to do this?

 

 

1 Solution

Accepted Solutions
AshutoshBhumkar
Partner - Specialist
Partner - Specialist

Hi,

You can add sort weight parameter in Concat () function. Try below

Concat(distinct Month, ' | ',Date)

 

Thanks,

Ashutosh

View solution in original post

5 Replies
AshutoshBhumkar
Partner - Specialist
Partner - Specialist

Hi,

You can add sort weight parameter in Concat () function. Try below

Concat(distinct Month, ' | ',Date)

 

Thanks,

Ashutosh

sebHan
Contributor III
Contributor III
Author

Hey,

It returns "Error in expression" when trying this solution 😕

 

AshutoshBhumkar
Partner - Specialist
Partner - Specialist

Any screenshots ? or sample data ?

AshutoshBhumkar
Partner - Specialist
Partner - Specialist

The result should look like this.

 

E.g 

AshutoshBhumkar_0-1633346844113.png

Since you have Monthend dates in your data, I have used sort weight as Monthend(InvoiceDate) to get the distinct dates.

sebHan
Contributor III
Contributor III
Author

Yeah so this actually worked 

=Concat(Distinct Month, ' | ', Date(Month))

was the solution. Thanks!