cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
jmatext
New Member

Display 2 measures in a stacked bar chart

Hello Community, 

 

I am trying to display 2 stacked bar (stacked bar would be splitted by a dimension) and each bar would be the measure.

I tried many way to do it but no good results... it looks not that complicated and pretty basic from an outside point of view. Any idea how to do so? 

You can find below a screenshot of what I did (I splitted each measure on a different graph) but then I meet scale issues.

jmatext_0-1623917730699.png

 

Thanks in advance for your help.

 

1 ACCEPTED SOLUTION
MFelix
Super User III
Super User III

Hi @jmatext ,

 

In this case you need to create an additional column to use on your axis that gives you the Actual and the Budget and a SWITCH function to get the values.

 

Actual /  Budget = SWITCH(SELECTEDVALUE('Type'[Type]), "Actual", [Actual], [Budget])

MFelix_0-1623918765374.png

PBIX file attach.

 

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



View solution in original post

1 REPLY 1
MFelix
Super User III
Super User III

Hi @jmatext ,

 

In this case you need to create an additional column to use on your axis that gives you the Actual and the Budget and a SWITCH function to get the values.

 

Actual /  Budget = SWITCH(SELECTEDVALUE('Type'[Type]), "Actual", [Actual], [Budget])

MFelix_0-1623918765374.png

PBIX file attach.

 

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



View solution in original post

Helpful resources

Announcements
MBAS on Demand

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

July 2021 Update 768x460.png

Check it out!

Click here to read more about the July 2021 Updates

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Top Solution Authors
Top Kudoed Authors