Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi all,
I am showing % difference in a matrix table.
How can I sort top 5 Products based on another measure, see below?
Thank you in advance.
Can anyone help with this please?
Hope this helps:
Add the measure diff to tooltips and then click on the ellipsis and select descending and diff
This video illustrates that
it doesn't work for Tables and Matrix unfortunately.
Here's an excerpt from a Microsoft document on TOPN() wherein it is stated that the result is not sorted in any order. So apparently, sorting has to be done manually : https://learn.microsoft.com/en-us/dax/topn-function-dax
I think you have to built a calculated column with a RANKX and use it to order. But you have to pay attention to the circular dependency. If i have time a try to help you in the next day.
@lucadelicio thanks, please see if you can help with this one. As i am not sure how to do this.
Can anyone help please?
@lucadelicio No my friend. Please read the instruction in the PBIX
The Accuracy % table should show SKU in this order:
Thanks.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 59 | |
| 43 | |
| 42 | |
| 23 | |
| 17 |
| User | Count |
|---|---|
| 190 | |
| 122 | |
| 96 | |
| 66 | |
| 47 |