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!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hi everyone,
I tried to achieve this kind of data in power bi but with no luck. It's quite easy to be done in power pivot. The data is sorted by grand total from the largest to smallest and is grouped by code.
Alternatively, I tried to add three charts while the first one's code is filtered by the largest sum of price. I finally managed to achieve this by using calculated columns, one column is the sum price regardless of color or year, another one is using the earlier function to achieve the rank. Then you can filter the rank column to show the Code-C(largest sum) chart.
But this leads to another problem. For code A and Code B, they have the same price total. I can not seperate these two charts by simply choosing the visual filter in power bi.
So Is there any better way to do this? Anyone have any idea?
Thanks in advance!
Solved! Go to Solution.
Looks like a Matrix visualization should get you what you want.
@Anonymous Create the Stacked Column Chart with the fields as in the picture and then click the Expand All... Button
This should give you kind of what you are looking for
You may have to adjust the size (width) of the chart!
Afterwards Please Vote here (so we can do this like in Excel)
https://ideas.powerbi.com/forums/265200-power-bi-ideas/suggestions/11524623-nested-x-axis-labels
@Anonymous Create the Stacked Column Chart with the fields as in the picture and then click the Expand All... Button
This should give you kind of what you are looking for
You may have to adjust the size (width) of the chart!
Afterwards Please Vote here (so we can do this like in Excel)
https://ideas.powerbi.com/forums/265200-power-bi-ideas/suggestions/11524623-nested-x-axis-labels
Looks like a Matrix visualization should get you what you want.
Hi smoupre,
Thanks for your reply.
I tried the matrix visualizaiton , and it works like a charm for pivot table.
But do you know how to turn this matrix into grouped charts like what it shows in the pivot?
Thanks!
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.