Forum Discussion
Dynamically display Column values based on RANKX formula.
- 5 years ago
Hi, NickMol25
Thank you for your feedback.
I am not sure why that happened.
Can you change your legend measure like below?
Or, you can also refer to the link down below, that I just created some sample pbix file to test it.
Legend = IF([Measure] <= 5, SELECTEDVALUE(Data[Country]), "Other")Hi, My name is Jihwan Kim.
If this post helps, then please consider accept it as the solution to help other members find it faster.
Hi, NickMol25
I am not sure if it works, but please try to change your measure like below.
Measure = rankx(ALLSELECTED('Countries'[Country Name]),[Sales])
If allselected is applied to the table level, then I think continent level cannot be filtered.
Hi, My name is Jihwan Kim.
If this post helps, then please consider accept it as the solution to help other members find it faster.
- NickMol255 years agoFrequent Visitor
Hey Jihwan_Kim
Thanks for the suggestion. The sorting now works as it should, but when I add the legend to my table every value is changed to 1.
I assume this happens because it is comparing per row and not the total. Any idea how I can make sure that my legend works correctly as well?
- Jihwan_Kim5 years ago
Super User
Hi, NickMol25
Thank you for your feedback.
I am not sure why that happened.
Can you change your legend measure like below?
Or, you can also refer to the link down below, that I just created some sample pbix file to test it.
Legend = IF([Measure] <= 5, SELECTEDVALUE(Data[Country]), "Other")Hi, My name is Jihwan Kim.
If this post helps, then please consider accept it as the solution to help other members find it faster.
- NickMol255 years agoFrequent Visitor
Hey Jihwan_Kim
Works perfectly! Thank you very much. I will accept the answer as solution.