Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Rajkumar
Creator
Creator

2 Dimension sorting in pivot table in qlik sense

Hi all,

 

How to sort 2 dimension in pivot table  ?

Please find the sample file attached.

 

Pivot Sorting.PNG

Labels (1)
2 Solutions

Accepted Solutions
agigliotti
Partner - Champion
Partner - Champion

make the second dimension as a calculated dimension as below:

=aggr( dual(STORES, SUM(SALES)), QUARTER, STORES)

on Sorting:

Sort numerically DESC

I hope it can helps.

View solution in original post

jupitopino
Partner - Contributor III
Partner - Contributor III

Hi Rajkimar.

Try this...

Create a new Dimension  Stores_v2 = Dual(STORES, Aggr(Sum(SALES), QUARTER, STORES))

And Sort this, by expresion  SUM(SALES).

 

Is the same that this old post... https://community.qlik.com/t5/Qlik-Sense-App-Development/Order-pivot-table-by-expression/m-p/1456741...

mark complete if is fine!

Regards.

View solution in original post

7 Replies
agigliotti
Partner - Champion
Partner - Champion

do you mean sorting by expression ASC or DESC ?

Rajkumar
Creator
Creator
Author

Yes DESC order.

agigliotti
Partner - Champion
Partner - Champion

make the second dimension as a calculated dimension as below:

=aggr( dual(STORES, SUM(SALES)), QUARTER, STORES)

on Sorting:

Sort numerically DESC

I hope it can helps.

jupitopino
Partner - Contributor III
Partner - Contributor III

Hi Rajkimar.

Try this...

Create a new Dimension  Stores_v2 = Dual(STORES, Aggr(Sum(SALES), QUARTER, STORES))

And Sort this, by expresion  SUM(SALES).

 

Is the same that this old post... https://community.qlik.com/t5/Qlik-Sense-App-Development/Order-pivot-table-by-expression/m-p/1456741...

mark complete if is fine!

Regards.

Rajkumar
Creator
Creator
Author

It works completely fine.

Only concern is performance because is data is huge.

Any other way ?

 

Rajkumar
Creator
Creator
Author

Hi,

Any Help?

_Julia_
Contributor II
Contributor II

Thank you! That's brilliant!