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
Anonymous
Not applicable

Making a stacked bar chart on top of a clustered bar chart

 

Hi,

 

I currently have a clustered bar chart that shows sales, quota and pipeline like the screenshot below. I want to stack the pipeline data on top of the sales data like shown below and have them remain different colors to distinguish between the two. How can I do this? Thank you 

 

 

bar chart.png

3 REPLIES 3
V-lianl-msft
Community Support
Community Support

Hi @Anonymous ,

 

You can use if or switch statements to create a calculated column.

test = IF('Table'[type]="pipeline","sales",'Table'[type])

test_0414.PNG

 

Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Thank you, but this does not solve my problem. I want the pipeline and sales data combined, but still to be different colors to show the difference. 

 

 

Hi @Anonymous ,

 

Well,I mean that set the calculated column as the legend will combine the pipeline and sales.

Look at the first picture. If you don't mean this, please let me know your scenario.

 

Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.