Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Ordering Dates

Hi All,

I have a month field. Jan - feb -mar etc. However in the list box the dates will not load in month order for some strange reason. Can i use the expression option in the Sort tab of the Properties and if so what do you write in there???

Thanks

Laura

8 Replies
CELAMBARASAN
Partner - Champion
Partner - Champion

Hi,

     Try creating a separating one more field

     Load * inline

     [Month,MonthNum

     jan,1

     Feb,2

     .

     .

     .

     .];

Use Monthnum as Sort by expression.

How you have created the monthField?

Celambarasan

Not applicable
Author

It is a field which is from the calendar. i want it to say jan, feb, march. i was wondering if i could use the dual function to solve my problem

CELAMBARASAN
Partner - Champion
Partner - Champion

Hi,

     Ya you can use Dual function.

    

Load Dual(Month,MonthNum) as MonthFieldName inline

     [Month,MonthNum

     jan,1

     Feb,2

     .

     .

     .

     .];

Did you created the month Field using Month() function?

Celambarasan

jagan
Luminary Alumni
Luminary Alumni

Hi,

Can you attach the sample file.

Regards,

Jagan.

Not applicable
Author

Can i put that in the sort expression?

CELAMBARASAN
Partner - Champion
Partner - Champion

Hi,

     This should be used inside the script only.

     If you have to do it in sort expression use the below expr

     =WildMatch(FieldName,'Jan','Feb','Mar','Apr','May'......)

Celambarasan

Not applicable
Author

That worked, but say the user clicks march as a selection nothing stays in its orginal order.

Any ideas?

CELAMBARASAN
Partner - Champion
Partner - Champion

Hi,

     Have you unchecked the Sort by State option?

Celambarasan