Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
rajany089
Contributor II
Contributor II

Sorting Quarter - Year on Qlik sense

 

Hi Qlik Community,
 
I have created a `Quarter-Year` field using the following formula in my load script:
 
IF(len(Effective_SLA_Date)>0, 'Q' & ceil(month(Effective_SLA_Date)/3)& '-' &Year(Effective_SLA_Date)) as Effective_SLA_Quarterly,

 
 
I now need to sort this `Effective_SLA_Quarterly` field in descending order, such as `Q1-2022`, `Q2-2022`, and so on up to `Q2-2024`.
 
How can I achieve this sorting in Qlik Sense?
 
Thank you!
Labels (2)
1 Reply
BrunPierre
Partner - Master
Partner - Master

You could try something like Num(Right("Quarter-Year, 2) & left("Quarter-Year", 1)) to sort by expression in ascending order.