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: 
Not applicable

How to sort by a Date field

Hi,

PFA the data I have in a Qlikview straight through table.  Here the quarter field was derived from the period_start_dt field.  The ordering I am expecting is as follows:

1Q2015

3Q2014

2Q2014

1Q2014

Please assist.

Thanks,

Sudha.

2 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

You can use the Dual function to create a numeric value with different display format. See attached example.


talk is cheap, supply exceeds demand
maxgro
MVP
MVP

or sort by expression desc

Mid(Quarter,3,4) & Left(Quarter,1)

1.png