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.
Hello!
I have two main datasets connected by relationships through separate tables for specific features. Is there any way to sort my power pivot from highest to lowest value with using measure? Expected result as below. Thanks in advance for any tips.
Solved! Go to Solution.
Hi @harry6810 ,
We can create a rank measure.
index =
RANKX ( ALL ( 'Table' ), 'Table'[Units], MAX ( 'Table'[Units] ), DESC, DENSE )
Then the result is as follows.
If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @harry6810 ,
We can create a rank measure.
index =
RANKX ( ALL ( 'Table' ), 'Table'[Units], MAX ( 'Table'[Units] ), DESC, DENSE )
Then the result is as follows.
If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Once you have multiple measures on columns in a pivot, you can't sort them. You could try removing all measures except the one you want to sort, sort it first, then add the others. I don't know if it will work. You may be able to write a DAX query to produce the output and sort that. Here are some articles I wrote that may help
https://exceleratorbi.com.au/introduction-dax-query-language/
https://exceleratorbi.com.au/dax-query-tables-in-excel-2010/
User | Count |
---|---|
25 | |
12 | |
8 | |
7 | |
7 |
User | Count |
---|---|
29 | |
13 | |
13 | |
10 | |
6 |