Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
gal_polak
Creator
Creator

Pivot table sort dimension by expression of the measure

Hi, 

I have a pivot table that present the top 3 departments in each week by their score.

all i want is that the results will be sorted, so the department with highest score in each week will be first, then second and third

 

Don't know if it is relevant by my measure set analysis is:

sum({$<$(=SetAnalysisPopulation), DefaultScore={'*'}>}[Factored Score])

 

2019-02-06_17-05-14.png

 

Labels (1)
  • Chart

1 Solution

Accepted Solutions
Gysbert_Wassenaar

Oh yeah, forgot. The second dimension is independent of the first one. So it's not a hierarchy. ADR will have a different value for 12/31/2018 then for 01/07/2019. And the problem is that it's not possible to sort a dimension per value of another dimension. You'd have to create a dimension with unique values. For example a combination of the date and the org.level.

talk is cheap, supply exceeds demand

View solution in original post

4 Replies
Gysbert_Wassenaar

Go to the Sorting section of the properties of the pivot table. Expand the Org. Level 2 dimension and change the Sorting setting from Auto to Custom. Then use the same expression as in your measure as sorting expression for this dimension. Finally change the sorting order from Ascending to Descending.


talk is cheap, supply exceeds demand
gal_polak
Creator
Creator
Author

Tried that,
but it seems that only the first and the last place changes...for example:
in 12/31/2018:
the Sales & Marketing with 8 points stay in the middle 😞

you can see the wired behavior in the attached video 

Gysbert_Wassenaar

Oh yeah, forgot. The second dimension is independent of the first one. So it's not a hierarchy. ADR will have a different value for 12/31/2018 then for 01/07/2019. And the problem is that it's not possible to sort a dimension per value of another dimension. You'd have to create a dimension with unique values. For example a combination of the date and the org.level.

talk is cheap, supply exceeds demand
gal_polak
Creator
Creator
Author

thx, very much!