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
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

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.