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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Anonymous
Not applicable

subtraction of two columns

Hi,

 

I am trying the use the quick mesure to subtract 2 colums of value with mixture of positive and negative but my end result trun out to be a positive (adding to value together). how do i edit this.

 

Var Gross Margin =
(SUM('Sheet2'[Actual Gross Margin])-SUM('Sheet2'[Budget Gross Margin]))

 

4 REPLIES 4
Mahesh0016
Super User
Super User

Mahesh0016_0-1672031666139.png

@Anonymous 

Subtraction = ABS([Total UnitPrice]-[Total ListPrice])
Anonymous
Not applicable

Hi @Anonymous ,

Please have a try.

Create a measure.

Var Gross Margin =
ABS(SUM('Sheet2'[Actual Gross Margin])-SUM('Sheet2'[Budget Gross Margin]))

 

How to Get Your Question Answered Quickly 

 

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

 

Best Regards
Community Support Team _ Polly

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Idrissshatila
Super User
Super User

Hello you could add a calculated column in the table then use this measure you used.

 

Screenshot 2022-12-23 094209.png

If I answered your question, please mark my post as solution so it would appeare to others, Appreciate your Kudo 👍

Follow me on Linkedin



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




Anonymous
Not applicable

Thanks, I have tried, but the numbers were in correct.  so i didnt use the ABS.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.