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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Dbhuertac
New Member

Help Creating a Stacked bar graph with different subcategories

Hi all!

 

I'm fairly new to Power BI and was wondering if anyone had any insight into how I could make a single visualization with multiple bar graphs using the same data set, and with each bar graph displaying a progressively smaller number of data, with different sub categories. Hopefully I'm using the correct wording, but essentially here is my situation:

 

- I have 18,000 rows of data that I want to group in two distinct Categories (lets call them A&B) and display in a stacked bar graph.

- I then want to show only the data in category A (say 17,000 lines) and divide that Data into new subcategories: Lets call them "A1,B1,C1" in another bar graph.

- I then want to show only the data contained in category B1 (say 8,000 lines) and break it down further into subcategories A2,B2,C3, etc.. in another graph.

- Finally, I want to show only category C3 and break it down into subcategory A3,B3,C3 in a final graph.

 

I've attached a picture I drew with what I'm thinking of doing. All the data comes from a single data set. Apologies on what I'm sure is a noob question but any help would be greatly appreciated. Thank you!

 

Bar Graph.jpg

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Dbhuertac,

 

Maybe you can try to use hierarchy slicer to filter visual graph to display specific items.
Otherwise you need to write a measure with conditions as value field of visual, I think it is hard and complex to achieve.

 

Sample: hide bars when drill down.(2 level)

How to hide bars when drilling down in the same visualization?

 

Regards,

Xiaoxin Sheng

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @Dbhuertac,

 

Maybe you can try to use hierarchy slicer to filter visual graph to display specific items.
Otherwise you need to write a measure with conditions as value field of visual, I think it is hard and complex to achieve.

 

Sample: hide bars when drill down.(2 level)

How to hide bars when drilling down in the same visualization?

 

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.