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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

How to show hierarchical data in clustered bar graphs

Hi All,

My data is in below format. How do I show a hierarchy of Cars with subvalues swift and bmw IN Clustered bar graph. I need to show bar graphs for bus, cars, swift and BMW all in one bar graph (Drilldown is not an option for me)

CategorySales
Bus1000 (Imagine Bar Graph)
Cars2000 (Imagine Bar Graph)
1) Swift
2) BMW

1000 (Imagine Bar Graph)

1000 (Imagine Bar Graph)

 

Please suggest a way or any custom visual that can give this way.
Thanks,
Radhika

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Thanks Liu, this is a good solution. But my requirement was to show total and the split of subvalues for the total in this case, cars as total and also split of cars as bmw, honda and swift just below cars total. 
I have achieved by duplicating the clustered bar charts and placing it just below main category one. Not a perfect fix, but it solved the problem
Thanks again for the effort !

View solution in original post

4 REPLIES 4
v-yangliu-msft
Community Support
Community Support

Hi  @Anonymous  ,

Your idea, power bi cannot support it temporarily

But you can see if this method works

Created some data:

v-yangliu-msft_0-1621583941592.png

Here are the steps you can follow:

1. Create a matrix visual object in Page1

v-yangliu-msft_1-1621583941595.png

2. Page2, select Type-Tooltip of Page Size. and Tooltip of Page information to ON.

v-yangliu-msft_2-1621583941598.png

3. Select the Stack bar chart to form the visual object

v-yangliu-msft_3-1621583941599.png

4. Select the matrix of Page1, set its Tooltip to ON, and set Page – Page2

v-yangliu-msft_4-1621583941601.png

5. Result.

The thumbnail of Page2 will be formed in the matrix. Which row is selected will display the Stack bar chart of the corresponding row.

v-yangliu-msft_5-1621583941603.png

 

 

 

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.

Anonymous
Not applicable

Thanks Liu, this is a good solution. But my requirement was to show total and the split of subvalues for the total in this case, cars as total and also split of cars as bmw, honda and swift just below cars total. 
I have achieved by duplicating the clustered bar charts and placing it just below main category one. Not a perfect fix, but it solved the problem
Thanks again for the effort !

amitchandak
Super User
Super User

@Anonymous , Not very clear. But I think two columns(sort on both) and axis and concatenate label: off  can help

 

refer to my video: check power bi part: https://www.youtube.com/watch?v=2P5BBRN853c

Anonymous
Not applicable

Hi Amit

Thanks for replying but this how I want the visual to look like Prototype.PNG
Cars is a hierarchy I made in power BI, with clustered bar chart it is showing either on lowest level with drill down or the top level i.e Buses, Trucks and Cars. I want to show it in the above way. Bar graphs represent Sales numbers for Actuals, Budget and Prior Year
Please suggest a way to get above visual in Power BI

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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