Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Dear Community,
in my project, I try to compare the cost structure of a product portfolio. There are 30 products in my portfolio (Prod. 1,..., 30), each of them belongs to a certain product category (fruit, vegetables, drinks, others). The production of each product involves four different types of cost (Cost A, B, C, D).
In the end, my aim is to generate a clustered column chart, with the four cost types on the X axis and a comparison of product cost, cost of category and total costs in each column-cluster:
The product is selected with a slicer:
My simple data model looks like this:
Cost per product, per category and for all products are defined as measures:
Anyl help of idea is highly appreciated!!
Thanks!
Solved! Go to Solution.
Have you considered using Calculation Groups for that? They come with a cost (no pun intended) - You would have to learn how to use Tabular Editor. On the other hand they seem to fit your need perfectly.
Hi @Vetinari ,
You can try to create a disconnected table as a slicer, and then created a switch measure to show the different measures by slicer.
You can also use the Tabular Editor to achieve this.
Please refer to this blog:
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thanks! But that would still mean that I can show only one measure in the clustered column chart at a time, right?
No, you can have multiple measures.
Have you considered using Calculation Groups for that? They come with a cost (no pun intended) - You would have to learn how to use Tabular Editor. On the other hand they seem to fit your need perfectly.
That was a great hint! Thank you! Calculation groups significantly reduce the number of measures. But still I can only compare one type of cost in one clustered column chart. PowerBI won't allow me to add another measure into the values field.:
Is there some kind of work-around?
You can either have a legend or multiple values, not both. There may be custom visuals that support that.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
79 | |
76 | |
59 | |
36 | |
31 |
User | Count |
---|---|
91 | |
59 | |
59 | |
49 | |
42 |