Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Alex
Contributor II
Contributor II

concat order by expression

Hi all,

I would like to order by year & quarter desc (Q1-FY19,Q4-FY18,etc.)

concat(distinct chr(39) & Fiscal_Year_Quarter & chr(39), ',',????)

In all my charts I order by expression Num(Year&Replace(Quarter,'Q','')) but it doesn't work here. Any idea?

Thanks!

1 Solution

Accepted Solutions
Frank_Hartmann
Master II
Master II

try this:

concat(distinct chr(39) & Fiscal_Year_Quarter & chr(39), ',',num(right(Fiscal_Year_Quarter,2)&left(purgechar(Fiscal_Year_Quarter,'Q'),1)))

View solution in original post

5 Replies
Frank_Hartmann
Master II
Master II

try this:

concat(distinct chr(39) & Fiscal_Year_Quarter & chr(39), ',',num(right(Fiscal_Year_Quarter,2)&left(purgechar(Fiscal_Year_Quarter,'Q'),1)))
sasis551
Contributor III
Contributor III

Hi ,

can you share the screenshot?

marcus_malinow
Partner - Specialist III
Partner - Specialist III

Another approach would be to set up your Fiscal_Year_Quarter field as a dual in your load script. Then you don't need to fiddle around with custom sort orders in your expressions.

https://community.qlik.com/t5/QlikView-Documents/How-to-use-Dual/ta-p/1477054

 

 

sunny_talwar

How do you define your Fiscal_Year_Quarter in the script?

Alex
Contributor II
Contributor II
Author

It worked! Thanks!