Forum Discussion
rlansing
Resolver I
10 years agoRANKX question
Hello, I am refining a DAX measure that calculates a product's rank within a group of products. Here is my current measure: $ Rnk = IF([$ Vol] > 0 && HASONEVALUE( Products[Product] ), RANKX ( A...
- 10 years ago
Maybe I am missing something. Why can't you use this
Rankx(all(product), etc
MattAllington
Community Champion
10 years agoMaybe I am missing something. Why can't you use this
Rankx(all(product), etc
- rlansing10 years ago
Resolver I
Thanks Matt. Now it seems trivial. Because I just want to honor the filter on the Sub-Category, I am now using
RANKX (ALLEXCEPT (Products, Products[Sub-Cat]), [$ Vol] ) etc....
I was trying to use ALL but applied it to the Fact table not the dimension table.