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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
dmriv
Regular Visitor

Stacked Bar Variance Chart

Hello,

I am working with a use case where the client wants totals for subcategories displayed in a stacked bar chart. However, they would also like the variance to be visualized on the side. Currently, we have managed to create a temporary solution using two different native visuals, but we want to try and do this all within one object. 

dmriv_0-1764082819804.png

 

I have looked through various tutorials and custom visuals for IBCS/variance charts that would fulfill the requirements of this case, but they are all either for use on clustered charts, stacked column, or overlapping bars. Is it possible to accomplish this objective or is it simply something that is currently not possible on PowerBI using native/custom visuals? Any help is appreciated, thanks.

 

1 ACCEPTED SOLUTION
kushanNa
Super User
Super User

Hi @dmriv 

 

You can create visuals like this using power bi inbuilt python visual https://www.youtube.com/watch?v=3_DOF_qjguA&t=10s . you will need to install python to see this on desktop or you can publish this pbix file to the service and see it in there 

 

attached is a sample i have created for your reference

kushanNa_0-1764151248947.png

 

View solution in original post

5 REPLIES 5
v-venuppu
Community Support
Community Support

Hi @dmriv ,

May I ask if you have resolved this issue? Please let us know if you have any further issues, we are happy to help.

Thank you.

v-venuppu
Community Support
Community Support

Hi @dmriv ,

Thank you for reaching out to Microsoft Fabric Community.

Thank you @kushanNa @amitchandak for the prompt response.

I wanted to check if you had the opportunity to review the information provided and resolve the issue..?Please let us know if you need any further assistance.We are happy to help.

Thank you.

 

kushanNa
Super User
Super User

Hi @dmriv 

 

You can create visuals like this using power bi inbuilt python visual https://www.youtube.com/watch?v=3_DOF_qjguA&t=10s . you will need to install python to see this on desktop or you can publish this pbix file to the service and see it in there 

 

attached is a sample i have created for your reference

kushanNa_0-1764151248947.png

 

amitchandak
Super User
Super User

@dmriv , While I would like get more details to suggest excat visual. But with Calculation Group and using a custom column on top of it as Zmall mutiples can help 

amitchandak_0-1764083218412.png

 

amitchandak_1-1764083250487.png

 

 

More on this 
Calculation Groups- Measure Slicer, Measure Header Grouping, Measure to dimension conversion. Complex Table display : https://youtu.be/qMNv67P8Go0

Calculation Groups - Use Measure with small multiple : https://www.youtube.com/watch?v=LEn6ZnScMZc

This is a better example - Creating Clustered Stacked Bar Visuals with Calculation Groups and Measure

https://youtu.be/Z1Jx1hPtzbM

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Thank you for your response, but this is not quite the solution that we need. To give better context, the three groups of bars in the image I provided are small multiples used within a native stacked bar chart visual, in which the stacks are based on subcategories. Then, the variance visual on the right is a separate visual. What we need to try to do is do this all within one single visual. However, it is a requirement that it be vertical and show both the stacked bar chart and variance on the right as in the example. In other words, an exact replica of the image provided but using just one visual rather than two. My question is whether this is possible as I have looked through various tutorials and custom visuals and have found solutions that fulfill one element of these requirements, but not the whole solution.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.