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
Salauat
Regular Visitor

DAX: Total price from two tables

Hello, I have two tables.

In first table I have multiple Man.Model repeated N times.

In second table I also have Man.Model, but repeated once.

 

Product table:

  • Device name
  • Manufacturer model
  • Date expire

 

Unit Price table:

  • Manufacturer model
  • Unit Price

I am trying to create New Measure, which will be counting Total Price = Product[Count_of Man.Model] * Unit Price[Unit Price]

I have placed simple Table visual in my report with filter by Date expire and I need above Measure to be recalculated every time, when filter changes

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Salauat , if there is one to many relation then you can try like

Total Price =sum( Product[Count_of Man.Model] )* maxx(Product, related(Unit Price[Unit Price]))

 

 

else refer these ways to copy value from one table to another : https://www.youtube.com/watch?v=czNHt7UXIe8

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@Salauat , if there is one to many relation then you can try like

Total Price =sum( Product[Count_of Man.Model] )* maxx(Product, related(Unit Price[Unit Price]))

 

 

else refer these ways to copy value from one table to another : https://www.youtube.com/watch?v=czNHt7UXIe8

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak Seems the formula you provided is not calculating the total correctly.

It multiplies Count * Unit_Price, but the overall rows total is not correct, it's way too huge

Hello @amitchandak !

Thank you, the correct formula that worked for me is below:

 

Total = SUM(Product[Count_of Man.Model] )* counta(Product, related(Unit Price[Unit Price]))

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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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