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
Ajax
Frequent Visitor

Bar chart of part to a whole

I have an excel sheet of people who owe debts. A column for their names, another column for the amount of debt each owed, and another column for how much of the debt they have paid off. Now, I want to do a stacked bar chart depicting the amount paid by each person as a green bar and the amount remaining in each person's indebtness as a red bar. How do I this without creating a different column for the amount remaining?
5 REPLIES 5
Ashish_Mathur
Super User
Super User

Hi,

These 3 measures should work

Amount owed = SUM(Data[Amount owed])

Amount paid = SUM(Data[Amount paid])

New amount owed = [Amount owed]-[Amount paid]

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hi @Ajax 

 

why don't you want to create another column?

Would measures be okay?

 

Regards,

Marcus

Dortmund - Germany
If I answered your question, please mark my post as solution, this will also help others.
Please give Kudos for support.

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast


Ajax
Frequent Visitor

Thanks mwegener for your response. The reason I don't want to create another column is that I don't want to have to modify my table every time that I need to update my visualizations that are based on it.

Hi @Ajax ,

 

but you can use a Calculated Column in Power BI for that.

'Table'[balance] = 'Table'[amount debt ] - 'Table'[amount paid]

 

Regards,

Marcus

Dortmund - Germany
If I answered your question, please mark my post as solution, this will also help others.
Please give Kudos for support.

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast


Hi @Ajax ,


is your problem solved?
If I answered your question, please mark my post as solution, this will also help others.
Please give Kudos for support.

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast


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.