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

how to substract columns from two different tables in Power BI

Hi Team,

Need your help please.
I have two tables - Master Table and Target table:
Master Table:

Saswa_D_0-1667716993815.png
Target table:

Saswa_D_1-1667717029456.png

Now in Target table I want to calculate Target Column as:
Target Coumn= Efficiency benefit - 'Master Table'[Cost Avoidance]- 'Master Table'[Loss].
And the I can present the Target table in a matrix.
I have tried creating DAX using SUM and Related functions but it doesn't help.
SUM summarizes and returns one value whereas Related did not work at all.

Please anyone can help me here ? 

 

1 ACCEPTED SOLUTION
AntrikshSharma
Super User
Super User

@Saswa_D use this:

SUMX ( 
    RELATEDTABLE ( 'Master Table' ), 
    Master Table'[Cost Avoidance]- 'Master Table'[Loss] 
)

View solution in original post

1 REPLY 1
AntrikshSharma
Super User
Super User

@Saswa_D use this:

SUMX ( 
    RELATEDTABLE ( 'Master Table' ), 
    Master Table'[Cost Avoidance]- 'Master Table'[Loss] 
)

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.