Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

How to group/secondary axis level data in power bi?

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.

20161021145732.png

 

 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. 

 

 

wrong.png

 

 

 

 

 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!

 

 

2 ACCEPTED SOLUTIONS
Greg_Deckler
Community Champion
Community Champion

Looks like a Matrix visualization should get you what you want.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

Sean
Community Champion
Community Champion

@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 Smiley Happy

You may have to adjust the size (width) of the chart!

 

2016-10-23 - Nested X-Axis.png

 

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

View solution in original post

4 REPLIES 4
Sean
Community Champion
Community Champion

@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 Smiley Happy

You may have to adjust the size (width) of the chart!

 

2016-10-23 - Nested X-Axis.png

 

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
Not applicable

@Sean

Yes, this is exactly what I'm looking for, thx very much!

Greg_Deckler
Community Champion
Community Champion

Looks like a Matrix visualization should get you what you want.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

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!

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.