Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi All,
Can anyone give me the DAX how to rank like this?
The data set is as follow
Type 1 | Type 2 | Price |
TV | A | 10 |
TV | A | 10 |
STB | A | 10 |
STB | A | 10 |
STB | A | 10 |
TV | B | 20 |
TV | B | 20 |
STB | B | 20 |
STB | B | 20 |
STB | B | 20 |
I want to show it like this
Type 1 | Type 2 | Price | Rank |
TV | A | 20 | 2 |
TV | B | 40 | 1 |
Solved! Go to Solution.
@KH_Mike ,
rankx(allselected(Table[Type1], Table[Type2]), calculate(sum(Table[Price])), ,desc,dense)
For Rank Refer these links
https://radacad.com/how-to-use-rankx-in-dax-part-2-of-3-calculated-measures
@KH_Mike ,
rankx(allselected(Table[Type1], Table[Type2]), calculate(sum(Table[Price])), ,desc,dense)
For Rank Refer these links
https://radacad.com/how-to-use-rankx-in-dax-part-2-of-3-calculated-measures
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
96 | |
95 | |
83 | |
70 | |
66 |
User | Count |
---|---|
118 | |
106 | |
93 | |
79 | |
72 |