Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
rathnam_qv
Creator
Creator

Listbox

Hi all,

i have list box like Jan to Dec.....but it is not in correct order.i want to display it like JAN,FEB,MAR.....DEC

help me...

Thanks!!!

Smiley

5 Replies
Anonymous
Not applicable

Change Sort order to Numeric, or to Load Order.

Jonathan

jvitantonio
Luminary Alumni
Luminary Alumni

That depends on the type of field. In your case, it might be a simple string field. In your script, create a dual field like:

Load

dual(MonthName, MonthNumber) as Month

From...

Where MonthName is the field containing the month name and Month number is the month number.

Dual will allow you to see the month name but behind it, it will behave as a number, making sorting easy to implement.

rathnam_qv
Creator
Creator
Author

hey still it is not happening...

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

     Create an inline table something like below.

     Inline:

     Load * inline [

     Month, MonthSort

     JAN,1

     FEB,2

     Mar,3

     ..

     ];

     Make sure that the Month field name links with your month field in data model.

     Now go to the listbox properties- > Sort ->Select Expression ->Type MonthSort.

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
Not applicable

try this

LOAD *,

month(date(date#(field,'MMM'),'MMM')) as month

INLINE [

    id, price, field

    1, 2, Jan

    2, 3, May

    3, 0,Mar

    4, 5,Apr

    5, 1,Feb

];