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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
ashmitp869
Post Partisan
Post Partisan

Help me with the subtraction of two columns of matrix ?

Hi ,

How can I subtract two columns in matrix .

For eg, I need to subtract PurchaseOrderValue and InvoiceAmount -

I am using matrix for the visual and they are rows.

 

I need to calculate Remaining cost = PurchaseOrderValue - InvoiceAmount

 

Note - PurchaseOrderValue  is coming from table Purchase Order nd 

 

ashmitp869_0-1738719133105.png

 

2 REPLIES 2
anmolmalviya05
Super User
Super User

Hi ,

If purchaseordervalue & invoiceamount are already a measure then you can simply create below measure

Remaining Cost = PurchaseOrderValue - InvoiceAmount

Or you can calculate in below way if they are coming from column: (consider table name as example)
Remaining Cost = SUM('Purchase Order'[PurchaseOrderValue]) - SUM('Invoice'[InvoiceAmount])

As an alternative, Power BI has introduced Visual Calculation: https://learn.microsoft.com/en-us/power-bi/transform-model/desktop-visual-calculations-overview


Using this you can perform calculation directly in Power BI

Did I answer your question? Mark my post as a solution! Appreciate your Kudos !!

 

Let's Connect on LinkedIn: https://www.linkedin.com/in/anmol-malviya/?originalSubdomain=in

 

Subscribe my youtube channel for Microsoft Fabric and Power BI updates: https://www.youtube.com/@AnmolPowerBICorner




 

@ashmitp869

Idrissshatila
Super User
Super User

Hello @ashmitp869 ,

 

you can either create a measure that subtracts the two values or you can use visual calculations.

 

check it out https://learn.microsoft.com/en-us/power-bi/transform-model/desktop-visual-calculations-overview



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!




Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 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.

Top Solution Authors
Top Kudoed Authors