Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and a 50 percent discount on exams.
Get startedEarn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
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.
User | Count |
---|---|
94 | |
90 | |
79 | |
77 | |
71 |
User | Count |
---|---|
116 | |
106 | |
88 | |
64 | |
63 |