Forum Discussion
Dynamic TopN OTHERS
Hello,
I have a dataset with four columns : Country, Year, Amount, Region. I created a bar chart ( the amount by country) and two slicers: one with the the year ( 2018 and 2019) and another according with the region (EU and latam).
I would to create a TOP 10 bar chart and put all others bars in another category called "OTHERS". The problem is that I dont know how to do that dynamically ( I succeded statically 😞 The bar chart has to display all the time the top 10 and the other category related with what I chose with the slicers.
can someone help me with this?
Thank you !!
3 Replies
- az38Community Champion
Hi Anonymous
try to create a measure
Measure = var r= RANKX('Table1';SUM('Table1'[Amount])) return if(r<11;SELECTEDVALUE('Table1'[Country]);"Others")then place it to the bar chart instead of Country
do not hesitate to give a kudo to useful posts and mark solutions as solution
- amitchandakSuper User
Refer
https://community.powerbi.com/t5/Desktop/Top-10-Other/td-p/51282
Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks. My Recent Blog -
https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-trend/ba-p/882970
https://community.powerbi.com/t5/Community-Blog/Power-BI-Working-with-Non-Standard-Time-Periods/ba-p/881739
https://community.powerbi.com/t5/Community-Blog/Comparing-Data-Across-Date-Ranges/ba-p/823601 - AnonymousNot applicable
Hi Anonymous ,
I don't think you can do it in a bar chart because Measures can't be added to Axis.
Best Regards,
Jay
Community Support Team _ Jay Wang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.