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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

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/
mwegener
Most Valuable Professional
Most Valuable Professional

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 - Power BI Tutorials


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.
mwegener
Most Valuable Professional
Most Valuable Professional

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 - Power BI Tutorials


mwegener
Most Valuable Professional
Most Valuable Professional

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 - Power BI Tutorials


Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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