Forum Discussion
Custom ranking (preassigned values)
- 8 years ago
Hi Anonymous
If you are looking for a MEASURE, you can use this formula
RANK_Measure = IF ( SELECTEDVALUE ( TableName[Customer] ) = "Multiple Customers", 301, RANKX ( FILTER ( ALL ( TableName ), TableName[Financial Year] = SELECTEDVALUE ( TableName[Financial Year] ) && TableName[Customer] <> "Multiple Customers" ), CALCULATE ( SELECTEDVALUE ( TableName[Values USD] ) ) ) )
Hi Anonymous,
In your expected result, there are some blank row, why they are blank, you only want to display the rank number which is less than 4 in your sample table?
Best Regards,
Angelia
Hi v-huizhn-msft , Yes, Rank is required for those blank cells . I kept it blank in the "expected result" field but the adjacent field named "condition" states " as per formula based on field "Financial Year" & sum of "Values USD" ".
- v-huizhn-msft8 years agoMicrosoft Employee
Hi Anonymous,
Ok, got it. Please try the solution Zubair_Muhammad posted, please mark the right reply as answer if your issue has been resolved, and respond to us if you still have other problems.
Best Regards,
Angelia- Anonymous8 years agoNot applicable
Hi v-huizhn-msft, yes I got to check that offered solution given by Zubair_MuhammadZubair Mohammad. I thought if in case you want to contribute from your side in a different way :-)
- v-huizhn-msft8 years agoMicrosoft Employee
Hi Anonymous,
Have you tried the solution Zubair_Muhammad posted? Have you resolved your issue? If you have, welcome to share your solution or mark the right reply as answer. More people will benefit from here.
Best Regards,
Angelia