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

Dynamic Sorting with Cyclic Groups

Hi all, cyclic groups is great when I was making a chart to breakdown sales by different dimensions.

BUT, what if I need to sort it with expression using match function for a specific demension?

Thanks so much!

example:  I need to sort the Price Range, so that it's from low price range to high price range. How to do it if this dimension is in cyclic group?

2014-03-25_1355.png

1 Solution

Accepted Solutions
maxgro
MVP
MVP

if I understand your question you can conditional sort depending on the field you show using GetCurrentFieldofthe cyclegroup

example

=

if(GetCurrentField("<<KPICycle")='Sales Rep', wildmatch([Sales Rep], 'A*', 'R*', '*'),

if(GetCurrentField("<<KPICycle")='Product Group', wildmatch([Product Group], 'S*', 'B*', 'R*', 'A*', '*'),

wildmatch([Item Desc], 'Bett*', 'BB*', '*')

))

View solution in original post

2 Replies
maxgro
MVP
MVP

if I understand your question you can conditional sort depending on the field you show using GetCurrentFieldofthe cyclegroup

example

=

if(GetCurrentField("<<KPICycle")='Sales Rep', wildmatch([Sales Rep], 'A*', 'R*', '*'),

if(GetCurrentField("<<KPICycle")='Product Group', wildmatch([Product Group], 'S*', 'B*', 'R*', 'A*', '*'),

wildmatch([Item Desc], 'Bett*', 'BB*', '*')

))

Not applicable
Author

Thank you Massimo, this is what I am talking about