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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
jcloss13
Frequent Visitor

Stacked bar chart with 2 Measures as Value and Axis

Good Morning,

 

I am assuming that this is something very simple but I am new to Power BI and can't quite get past this one. I am trying to make a simple stacked chart with the Legend being a column that holds "Yes" and "No" and I want to see a column for the Count % Total and a column Balance % Total. 

 

 Is there an easy way to do this? 

 

Thank you,

Jordan

1 ACCEPTED SOLUTION
v-ljerr-msft
Microsoft Employee
Microsoft Employee

Hi @jcloss13,

 

If I understand you correctly, I don't think there is an easy to to it currently. You may need to add you a new table(let's call it "NewTable") with a column(let's called it "NewColumn") which has two values("Count % Total", "Balance % Total") first, then use this column as Axis on the stacked bar chart.

 

You will also need to create a new measure to calculate "Count % Total" and "Balance % Total" according to the current Axis. Then use this measure as Value on chart. The formula below to create the measure is for your reference.

New Measure =
IF (
    HASONEVALUE ( NewTable[NewColumn] ),
    IF (
        VALUES ( NewTable[NewColumn] ) = "Count % Total",
        [Count % Total],
        [Balance % Total]
    )
)

 

Regards

View solution in original post

1 REPLY 1
v-ljerr-msft
Microsoft Employee
Microsoft Employee

Hi @jcloss13,

 

If I understand you correctly, I don't think there is an easy to to it currently. You may need to add you a new table(let's call it "NewTable") with a column(let's called it "NewColumn") which has two values("Count % Total", "Balance % Total") first, then use this column as Axis on the stacked bar chart.

 

You will also need to create a new measure to calculate "Count % Total" and "Balance % Total" according to the current Axis. Then use this measure as Value on chart. The formula below to create the measure is for your reference.

New Measure =
IF (
    HASONEVALUE ( NewTable[NewColumn] ),
    IF (
        VALUES ( NewTable[NewColumn] ) = "Count % Total",
        [Count % Total],
        [Balance % Total]
    )
)

 

Regards

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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