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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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

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

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



Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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