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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Anonymous
Not applicable

Stacked column chart with four variables/columns

Hi,

I have a table with the following configuration in my PBI:

table.png

I would like to plot a stacked column chart so that column Value will be in the Y-Axis(SUM) and columns StartTime, DeviceName and TestName will be on the X-Axis having DeviceName as "Colour". 

The idea is that TestName will be stacked up on the X-axis while having Value column being summed up on the Y-axis but also have StartTime on the X-axis so that I have a chronological order and Device name in the Color field so that DeviceName is identifiable in the chart. 

Any help will be immensely appreciated.  

1 ACCEPTED SOLUTION
dm-p
Super User
Super User

Hi @Anonymous,

If I understand correctly, you're looking for a solution like in this post? If so, there's still not a way to do this using core visuals.

Given the potential density of your data and variables, this is ultimately going to be difficult to perceive quickly and easily by users.

This challenge is typically solved using one of the categories as a facet. This is known as a trellis or small multiple and are an excellent visualisation technique. Unfortunately, Power BI does not support this natively.

There are some custom visuals that will produce small multiples. The following will produce bar/column charts with small multiples:

If you're confident that one of your variables doesn't need to be dynamic and has low cardinality, then you can make use of the techniques in this blog post by the Power BI team - essentially you create duplicates of the same visual, with a suitable filter on each.

Your sample data is a small window so I can't confirm how many unique values you'd get, but I'd consider using DeviceName as a candidate for each individual chart.

I appreciate that this doesn't specifically answer your question but might give you some ideas with how you can proceed.

Good luck!

Daniel


If my post solves your challenge, then please consider accepting as a solution to help other forum members find the answer more quickly 🙂





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


On how to ask a technical question, if you really want an answer (courtesy of SQLBI)




View solution in original post

2 REPLIES 2
dm-p
Super User
Super User

Hi @Anonymous,

If I understand correctly, you're looking for a solution like in this post? If so, there's still not a way to do this using core visuals.

Given the potential density of your data and variables, this is ultimately going to be difficult to perceive quickly and easily by users.

This challenge is typically solved using one of the categories as a facet. This is known as a trellis or small multiple and are an excellent visualisation technique. Unfortunately, Power BI does not support this natively.

There are some custom visuals that will produce small multiples. The following will produce bar/column charts with small multiples:

If you're confident that one of your variables doesn't need to be dynamic and has low cardinality, then you can make use of the techniques in this blog post by the Power BI team - essentially you create duplicates of the same visual, with a suitable filter on each.

Your sample data is a small window so I can't confirm how many unique values you'd get, but I'd consider using DeviceName as a candidate for each individual chart.

I appreciate that this doesn't specifically answer your question but might give you some ideas with how you can proceed.

Good luck!

Daniel


If my post solves your challenge, then please consider accepting as a solution to help other forum members find the answer more quickly 🙂





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


On how to ask a technical question, if you really want an answer (courtesy of SQLBI)




Anonymous
Not applicable

Hey @dm-p

 

Thanks for the input! 

The visual output I'm looking for would be something within these lines:


chart_test.png

 

But the one thing missing is that I would like to have thoses bars stacked up by DeviceName, which would result in having A1,A12,A7 values summed up and represented in one single bar. So the desired outcome in this scenario would be 3 bars instead of 9. Is that clear ? 

EDIT: The whole dataset is over 1000 rows. DeviceName has +50 unique values, same applies to TestName so unfortunately the technic you suggested would work in this case. 

Again, thanks for helping out 🙂

Helpful resources

Announcements
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 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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