Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Custom Sort (Cycle) Dimension

Hello,

I have an pivot table with a dimension which a want to sort on custom order,

Let say's Dimension 1 with Fields

A

B

C

D

E

But I want to sort by the following order:

B

D

E

A

C

How do i realize this? With an Inline script and an Expression?

Thanks

Robert

Labels (1)
2 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

You can determine a sort order by first loading the values in the script in the order you want them in a temporary table. You can then sort by Load Order. Or you can sort by expression: match(only({1}[Dimension 1]), 'B','D','E','A','C')


talk is cheap, supply exceeds demand
Anonymous
Not applicable
Author

Hi Gysbert,

Option 1 worked fine, thanks.

But can you explain option 1 a bit further how the solution should work?