Forum Discussion
trishd1223
3 years agoFrequent Visitor
How to use RANKX and exclude 0's
Hi - trying to rank #'s and it's including all 0's. how do i exclude 0's from the ranking?
Hi trishd1223 ,
According to your description, you want to rank the values in $Chg column except 0, create a calculated column like this:
Column = IF ( 'Table'[Chg] = 0, BLANK (), RANKX ( FILTER ( 'Table', 'Table'[Chg] <> 0 ), 'Table'[Chg] ) )Result:
Is this the result you expected?
Best Regards,
Community Support Team _ kalyj
1 Reply
- v-yanjiang-msft
Community Support
Hi trishd1223 ,
According to your description, you want to rank the values in $Chg column except 0, create a calculated column like this:
Column = IF ( 'Table'[Chg] = 0, BLANK (), RANKX ( FILTER ( 'Table', 'Table'[Chg] <> 0 ), 'Table'[Chg] ) )Result:
Is this the result you expected?
Best Regards,
Community Support Team _ kalyj