Forum Discussion
RankX with 2 fields
Anonymous , It Seems like you are creating a subcategory rank. Now rank will change based on context. So I rank a measure on product . If I use the product then it will show correct rank. But If Add Category, then it will show product rank inside the category.
But If add say Product ID then I will see all 1. In such case In need use All(product,prodcut_id) to make sure they work together
For Rank Refer these links
https://www.sqlbi.com/articles/use-of-rankx-in-power-bi-measures/
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
https://community.powerbi.com/t5/Community-Blog/Dynamic-TopN-made-easy-with-What-If-Parameter/ba-p/367415