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: 
7mon
Contributor II
Contributor II

Pivot: Sort multiple dimensions

Hi everybody,

I'd like to filter multiple dimensions by quantity descending.

It works properly using a single dimension, but when I add a second one and use the sort by expression function it doesn't.

The reason may be, the second dimension is sorted by total quantities, independent of dimensions.

Here an example: Pears are ranked second at customer A although it has the lowest quantity of Customer A. (I suggest, the reason is it has the second highest quantity in total: 20 kg of customer A + 80 kg of customer B)

7mon_0-1686552069423.png

This is how the Pivot should look like:

7mon_0-1686552612384.png

 

Many thanks and best wishes

Simon

Labels (1)
3 Replies
Sabrina_V
Partner - Creator II
Partner - Creator II

Hello

You need to change the automatic sort applied in your chart by going in the sorting menu of your tcd and click "sort by first expression" : 

Sabrina_V_0-1686553573023.png

 

 

7mon
Contributor II
Contributor II
Author

Hi Sabrina,

it works fine, many thanks.


Additionally, I would like to know if there is an option for not sorting by first expression.

Many thanks and best wishes

Simon

7mon
Contributor II
Contributor II
Author

I want to add, it works as long as I am using not more than two dimensions.

If I add a third dimension, sorting by first expression, doesn't work anymore.