Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
nicogene
Partner - Contributor III
Partner - Contributor III

Customer sort order doesn't work

Dear all,

With list box object, the custom sort order doesn't work.

The formula used: Only({1} Match(Month,'01','02','03','04','05','06','07','08','09''10','11','12'))

And an example in attachment.

Many thanks in advance for your help.

Kindest regards,

Nicolas.

1 Solution

Accepted Solutions
Anonymous
Not applicable

Because your field Month have values without 0 and for this reason match function didn't work.

Elena

View solution in original post

8 Replies
Anonymous
Not applicable

You just lost a comma between 9 and 10.

Try to insert it!

Elena

Anonymous
Not applicable

Hi,

Comma is missing between 09 and 10

Try:

Only({1} Match(Month,'01','02','03','04','05','06','07','08','09','10','11','12'))

nicogene
Partner - Contributor III
Partner - Contributor III
Author

Thanks but the problem is still present.

Kindest regards,

Nicolas.

Anonymous
Not applicable

This sholud be correct (without 0)

Only({1} Match(Month,'1','2','3','4','5','6','7','8','9','10','11','12'))

nicogene
Partner - Contributor III
Partner - Contributor III
Author

Thanks for your response.

It works but I don't understand why it doesn't work with 01, 02 etc.

Kindest regards,

Nicolas.

Anonymous
Not applicable

Because your field Month have values without 0 and for this reason match function didn't work.

Elena

nicogene
Partner - Contributor III
Partner - Contributor III
Author

Ok thanks for your time.

Kindest regards,

Nicolas.

MarcoWedel

Hi,

another solution could be to replace the line

    [Month Name],

in the load statement of your sales table with

Month(Date#([Month Name],'MMM')) as [Month Name],

to use numerical sorting instead and to forget about sorting expressions.

To get the same month names as before, you may have to redefine your MonthNames variable as well.

hope this helps

regards

Marco