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.
Why would rankx also rank my table total??
I know I can take out the totals and then the ranking would be fine but there must be a way to also show your totals without them being ranked??
Solved! Go to Solution.
Hi @rpinxt ,
You can add a condition to your measure so the total doesn't show a rank.
rankx without total =
IF ( HASONEVALUE ( 'Backorder Details'[Origin] ), [rankx measure] )
The total has multiple values of [Origin] so it will not show a rank. Alternatively, you can use SELECTEDVALUE
rankx without total =
IF (
SELECTEDVALUE ( 'Backorder Details'[Origin] ) <> BLANK (),
[rankx measure]
)
By default/when the second argument is omitted, SELECTEDVALUE returns blank if the current row returns multiple values which is the case for the total. The second formula is to return a rank only if SELECTEDVALUE ( 'Backorder Details'[Origin] ) is not blank.
Proud to be a Super User!
Hi @rpinxt ,
You can add a condition to your measure so the total doesn't show a rank.
rankx without total =
IF ( HASONEVALUE ( 'Backorder Details'[Origin] ), [rankx measure] )
The total has multiple values of [Origin] so it will not show a rank. Alternatively, you can use SELECTEDVALUE
rankx without total =
IF (
SELECTEDVALUE ( 'Backorder Details'[Origin] ) <> BLANK (),
[rankx measure]
)
By default/when the second argument is omitted, SELECTEDVALUE returns blank if the current row returns multiple values which is the case for the total. The second formula is to return a rank only if SELECTEDVALUE ( 'Backorder Details'[Origin] ) is not blank.
Proud to be a Super User!
Thank you! @danextian
That did the trick. Bit strange they did it not make a default (not ranking totals), but your solution fixed it 😁
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 |
---|---|
106 | |
104 | |
77 | |
68 | |
61 |
User | Count |
---|---|
148 | |
107 | |
106 | |
82 | |
70 |