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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
Gems
Advocate I
Advocate I

Slicer first and then a stack chart with multiple variables

Hi! I'm stuck!  I need help in doing this:

 

First, I need to create a Slicer with the colours variable, so you can choose Red, Purple, etc. Once you have selected the colour, the stack chart should represent the variables Cars, Bikes, Motorbikes and Truck on the Y axis and the staked variables should be A and B.

So I can't reach the way you may organise the dataset in order to have the slicer first and then using the Stack Chart the way I mentioned.

This is the graph I need when you pick Red in the Slicer, and so on. (The values on the graph aren't correct, is just an example of what I need).

Gems_0-1663165265485.png

 

 

Gems_0-1663164408452.png

 

Thank you soooo much!!! 🙂

 

1 ACCEPTED SOLUTION
rsbin
Community Champion
Community Champion

@Gems,

As you mentioned, first step is to get your data into a proper table.  For this I suggest:

ColourSlicer Vehicle Category Value
Red Cars A 19.0
Red Cars B 83.6

Once the table is set up in this manner, the Slicer Visual and Stacked Bar chart will come naturally.

Hope this gets you going.

Regards,

View solution in original post

3 REPLIES 3
rsbin
Community Champion
Community Champion

@Gems,

As you mentioned, first step is to get your data into a proper table.  For this I suggest:

ColourSlicer Vehicle Category Value
Red Cars A 19.0
Red Cars B 83.6

Once the table is set up in this manner, the Slicer Visual and Stacked Bar chart will come naturally.

Hope this gets you going.

Regards,

Thank you so much! I was really stuck with this. 

I've learned so much with your answer and the problem is solved.

Thank you so much!

 

rsbin
Community Champion
Community Champion

@Gems ,

Glad I could help. 

Just keep thinking in terms of dimension and fact data tables, and things become much easier to visualize.

Good Luck and Best Regards,

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.