Forum Discussion
RANKX Always Returns 1
- 9 years ago
If you do want to use a Rank Measure in the Visual Filter you have to adjust how the sum is calculated like this...
Rank Product = RANKX ( ALL(MyData[Product] ), CALCULATE ( SUM ( MyData[Quantity] ), ALLEXCEPT(MyData, MyData[Product] ) ) )
See below...
Hope this helps! :smileyhappy:
Seanyou are awesome! Both of your solutions worked but I will mark RANKX as correct since it answered my original question. I'll use TOPN but will go back to understand RANKX. Curious as to why all my Google searches led me to RANKX. Thanks!
Hi All,
I have a similar logic to implement such that my visual is bringing fields from different tables. I have raised this in other post:
I need to put a filter of RANKX measure which should be = 1, But the participating fields are coming from different tables (connected ones). RANKX should be based on a Measure I created in report.
How can we do this. Find the detail in above link.
Thanks.