Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
mjt_childrens
Contributor III
Contributor III

Maintain Month order in listbox after selections

I'm using QlikView 11.20 SR2.   I have a listbox that displays my fiscal months like this:

PIC1.PNG

I want the months to stay in the order displayed above even after the user makes a selection.   But if I select Oct,Nov,Dec it puts these selections at the end of the listbox (and somehow Mar and Feb end up before Jan(?)).   

PIC2.PNG

Here is now I have my listbox sort properties set.  Base_YRMonthSort is a field created with year and month number (201309, 201310, etc).   What am I missing?

PIC3.PNG

It seems to me I've been able to do this before.   Thanks for any help.

15 Replies
gaddeonline
Contributor III
Contributor III

Hi Sandra,

I have used Only({1}FiscalMonth) in my case.  Thanks for the tip.

Regards

Mahesh Gadde

montubhardwaj
Specialist
Specialist

Very neat and thoughtful. Thanks for sharing.

vishsaggi
Champion III
Champion III

Try this in your Sort tab -> Expr ->

= Rank(Only({1}Base_YRMonthSort)

Ref: Picked from one of Sunny's Expression solution.

jrepucci15
Creator
Creator

Could use a Dual() function to assign 1 -> 12 to your fiscal months, then sort by numeric.

Dual(Pick(GlPeriold,'Oct','Nov','Dec','Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep'), GlPeriod )  as Month

CarlosAMonroy
Creator III
Creator III

Hi Martha,

Please see images below, both works fine!

4-5-2017 2-37-23 PM.png

4-5-2017 2-37-44 PM.png

Thanks,

Carlos M

dapostolopoylos
Creator III
Creator III

Worked perfect in my case, thank you very much!

Father/Husband/BI Developer