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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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