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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

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
Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

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