Forum Discussion
Maikeru
6 years agoHelper II
RANKX with condition
Hi, I am trying to create a RANKX measure on customers meeting a certain revenue conditions. Rank top 100 =
VAR Customer_list =
FILTER(
ALLSELECTED(Revenue[Customer]),
[Revenue total] ...
- 6 years ago
Maikeru , Prefer filter in measure and then use it RankX. Means have all filter in the measure and then use that measure in Rank
For Rank Refer these links
https://radacad.com/how-to-use-rankx-in-dax-part-2-of-3-calculated-measures
https://radacad.com/how-to-use-rankx-in-dax-part-1-of-3-calculated-columns
https://radacad.com/how-to-use-rankx-in-dax-part-3-of-3-the-finale
Pragati11
6 years agoSuper User
Hi Maikeru ,
In your following DAX, can you use your "Customer_list" directly, rather using IN operator.
Basically, rank your customer List and check. This should resolve the isssue.
VAR RANK_DESC = RANKX( FILTER(ALLSELECTED(Revenue[Customer]), Revenue[Customer] IN Customer_list), [Revenue total], , DESC)
So, in above RANKX directly use CUSTOMER LIST.
If this helps and resolves the issue, appreciate a Kudos and mark it as a Solution! 🙂
Thanks,
Pragati