Forum Discussion
Anonymous
6 years agoNot applicable
RANKX Issue
I want to show the rank based on the customer name only.
Here is the formula used
Customer Rank = RANKX( ALL( Sales[CustomerName]), [Amount],,DESC)
Please help .
4 Replies
- jdbuchanan71Super User
Hello Anonymous
Give this a try.
Customer Rank = CALCULATE ( RANKX ( ALL ( Sales[CustomerName] ), [Amount],, DESC ), ALLSELECTED ( Sales[StateName] ) )- AnonymousNot applicable
It worked . Still there is an issue brother. Same customer with different state is showing in different rows.
- v-eachen-msftCommunity Support
Hi Anonymous ,
Would you like to provide some sample data?I need to understand a clearer model.
Best Regards,
Eads
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- AnonymousNot applicable
Please refer image, data is from a single table only.