Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi guys,
Is it possible to sort a table or matrix by both row total and column total?
As you can see, the above matrix only sort the matrix by row total and not column total. I've seen some solution which including adding a rank column, I don't think that it will work when I add a slicer to filter the table/matrix. I've also found a post stating that it is not a function in Power BI, so I am just making sure if it can be done or not.
If you have any solution to make this work please let me know.
Thanks in advance.
Hi @Anonymous ,
To my knowledge, no perfect way to sort the column total in Matrix visual.
You can create custom sorting for the column fields in the matrix, such as creating a column, calculating the sum of each fruit, and then sorting the fruit. However, after some slicers are applied, the total changes at any time, and the sorting does not change dynamically.
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous , Row you can only sort on Total values on measures or Row (pivot0 column.
For column (Pivot) you need to use order by column
How to Create Sort Column and Solve Related Errors:
https://www.youtube.com/watch?v=KK1zu4MBb-c
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
73 | |
72 | |
37 | |
31 | |
26 |
User | Count |
---|---|
96 | |
84 | |
43 | |
40 | |
35 |