Forum Discussion
RANKX Multiple Columns
- 4 years ago
Hi, Omega
I simulated some data hoping to restore your problem.
Measure:
Difference = ABS(SUM(Sales[Sales])-SUM(Forecast[Forecast]))Ranking = RANKX(ALL(Country),[Difference],,DESC)Place the Ranking measure in filters on this visual, and after setting it as shown, click Apply Filter.
If the method I provided above can't solve your problem, what's your expected result? Could you please provide more details for it?
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Omega maybe create a measure using TOPN instead of using Rank
Top N =
CALCULATE ( [Difference], KEEPFILTERS ( TOPN ( 20, ALL ('Items' ), [Difference], DESC ) ) )
and use this measure in the visual.
✨ Follow us on LinkedIn
Learn about conditional formatting at Microsoft Reactor
My latest blog post The Power of Using Calculation Groups with Inactive Relationships (Part 1) (perytus.com) I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
⚡ Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.⚡