Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi guys,
i would like to visualize several column charts next to each other to compare the supplier performance with different locations/plants. Currently i have one column chart for each location which shows me the top 5 suppliers by amount of defective parts. Thats basic.
I need to show now an overview about all locations in comparison to each of them in one column chart. That means i would like to create a visual with an Y-axis (amount of defects) and an X-axis with top 5 suppliers for each plant (not top 5 for all plants) like this:
Is it possible and could someone give me support here a bit?
Hi @rob7one ,
I created some data:
Here are the steps you can follow:
1. Create measure.
Rank =
RANKX(
FILTER(ALL('Table'),
'Table'[Plant]=MAX('Table'[Plant])),CALCULATE(SUM('Table'[Value])),,DESC)Flag =
IF(
[Rank]<=5,1,0)
2. Place [Flag]in Filters, set is=1, apply filter.
3. Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi @Anonymous ,
big thanks for your support. For your created example it seems to work fine. I have reproduced it for my data and it shows me this as result:
For some reason it didnt display rank 3. When i choose an other plant by slicer it shows only rank 1,2,2,2,3 (with different total defects value). dont know why it is not consistent for my data.
I have find out a little different measure than yours, that seems to work i guess:
Hello @rob7one ,
Yes try the Clustered Column Chart were you add the suppliers as legend.
If I answered your question, please mark my post as solution, Appreciate your Kudos 👍
Proud to be a Super User! | |
Hello @Idrissshatila ,
thanks for your reply. I already tried this out. This is my result:
It displays now top 5 suppliers worldwide across all plants. I would like to show the top 5 suppliers in every plant seperatly to compare in this visual all the top 5's between the plants, like in the image of my first post. I hope you got me.
Hello @rob7one,
yes got you, try this article and see if this is what you're looking for https://powerbidocs.com/2020/01/21/power-bi-top-n-filters/
If I answered your question, please mark my post as solution, Appreciate your Kudos 👍
Proud to be a Super User! | |
Hello again @Idrissshatila ,
the image of my second post is exactly the result of what is described in your link. it shows the top 5 (by regular filter) across all plants. the very last step is now:
how i can show the top 5 for every plant seperatly. in other words i think i need to filter every plants top 5 for it's own, right? if yes how? 🙂
thank you anyway for the support till here btw, thats really nice.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 41 | |
| 38 | |
| 36 | |
| 30 | |
| 28 |
| User | Count |
|---|---|
| 128 | |
| 88 | |
| 79 | |
| 67 | |
| 62 |