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 .
jdbuchanan71
6 years agoSuper User
Hello Anonymous
Give this a try.
Customer Rank =
CALCULATE (
RANKX ( ALL ( Sales[CustomerName] ), [Amount],, DESC ),
ALLSELECTED ( Sales[StateName] )
)
- Anonymous6 years agoNot applicable
It worked . Still there is an issue brother. Same customer with different state is showing in different rows.