Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
annabergendal
Partner - Creator
Partner - Creator

Sort pivot table not working

I have a pivot table with two dimensions, where I want to sort both on Expression.

On first level it works fine, but when expanding to second dim I can see that the sorting does not work.

If I expand Supplier B, Service is not sorted in descending order, pls advice!

File attached.

2 Replies
Gysbert_Wassenaar

Try enabling the Sort by Y-value on the first dimension instead. Pivot tables are finicky when it comes to sorting. If you collapse and expand dimensions that will muck up the sorting too. If you use the Always Fully Expanded option then sorting by Y-value works fine. See attached example.


talk is cheap, supply exceeds demand
annabergendal
Partner - Creator
Partner - Creator
Author

Thanks,

but as the list in the real app is quite long the customer wants it collapsed by deafult.

When I try to sort by Y-value on first dimension, the sorting changes when expanding a Supplier, B is number one but after expanding becomes number two. I guess that's because it's resorting on the expanded values and not looking at the total per Supplier.

Any other ideas?