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

QUERY

how to sort this in

FW15 ,SS15 AND FW14

WHERE FW AND SS DERIVED FROM

if(YearSeason >= $(vOldYear)and Match(Mid(LocalQuarterSeason,3,2), 'PQ'), if(Match(Mid(LocalQuarterSeason,4,2), 'Q4','Q3'),'FW','SS')&Left(LocalQuarterSeason,2), 'Older')

7 Replies
Anonymous
Not applicable
Author

try in your sortoder the xpression

=match(LocalQuarterSession,'FW15','SS15','FW14','Older')

crusader_
Partner - Specialist
Partner - Specialist

Hi,

Use DUAL in your script:

if(YearSeason >= $(vOldYear)and Match(Mid(LocalQuarterSeason,3,2), 'PQ'), DUAL(if(Match(Mid(LocalQuarterSeason,4,2), 'Q4','Q3'),'FW','SS')&Left(LocalQuarterSeason,2), 'Older'), NUM(if(Match(Mid(LocalQuarterSeason,4,2), 'Q4','Q3'),2,1)&Left(LocalQuarterSeason,2), 0)) )


Sort by exression is very resource consuming operation.

Hope this helps you.


Regards,

Andrei

jagan
Luminary Alumni
Luminary Alumni

Hi Sweta,

Try like this in in your Sort tab expression

=Match(LocalQuarterSession,'FW15','SS15','FW14','Older')


OR load an inline table with required order and select Load Order in Sort Tab.


LOAD

*

INLINE [

FieldName

FW15

SS15

FW14

Older]


Hope this helps you.


Regards,

Jagan.


Not applicable
Author

cant understand your script, it s gives wrong result

expression given by me is  calculated dimension

Not applicable
Author

find list of local quarter season

FW & SS derived from them

jagan
Luminary Alumni
Luminary Alumni

Can you attach sample file?

Regards,

Jagan.

Not applicable
Author

can't