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 guys,
quick question:
I want to calculate a rank with RANKX but filter out zeros and blanks.
Any idea ? Filter does not work. 😞
Solved! Go to Solution.
Hi @Anonymous,
Please share a sample if the demo below doesn't help.
1. As a calculated column.
Ranks = IF ( ISBLANK ( [Value] ) || [Value] = 0, BLANK (), RANKX ( ALL ( 'Table1'[Name], Table1[Value] ), CALCULATE ( SUM ( Table1[Value] ) ) ) )
2. As a measure.
rankMeasure = VAR temp = SUM ( Table1[Value] ) RETURN IF ( temp = 0, BLANK (), RANKX ( ALL ( Table1[Name] ), CALCULATE ( SUM ( Table1[Value] ) ) ) )
Best Regards,
Dale
Hi @Anonymous,
Please share a sample if the demo below doesn't help.
1. As a calculated column.
Ranks = IF ( ISBLANK ( [Value] ) || [Value] = 0, BLANK (), RANKX ( ALL ( 'Table1'[Name], Table1[Value] ), CALCULATE ( SUM ( Table1[Value] ) ) ) )
2. As a measure.
rankMeasure = VAR temp = SUM ( Table1[Value] ) RETURN IF ( temp = 0, BLANK (), RANKX ( ALL ( Table1[Name] ), CALCULATE ( SUM ( Table1[Value] ) ) ) )
Best Regards,
Dale
Hi,
Share some data and show the expected result.
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 |
---|---|
110 | |
95 | |
76 | |
65 | |
51 |
User | Count |
---|---|
146 | |
109 | |
106 | |
88 | |
61 |