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

Get Fabric certified for FREE! Don't miss your chance! Learn more

Reply
Vincent_Jaquet
Regular Visitor

sum error when 2 columns of 2 table muliply

Hello,

I try to Multiply 2 Columns of 2 differents table.

one is a Personal reference table  and the other is the hours done by project

I create a relation between the two table with the both column name

 
 
image.pngimage.png
 
 
 
Costs = SUM('DATA'[Hours done]) * SUM('Personel'[Hourly rate])
hours sum are OK
But the sum of the cost are wrong
Thanks for your help
 
image.png
 
 
 

 

1 ACCEPTED SOLUTION

It's ok the summurize must be done on Name and it's ok

 

Thank you very much for your help

 

image.png

View solution in original post

4 REPLIES 4
amitchandak
Super User
Super User

@Vincent_Jaquet 

Ideally for mutliplication you should use
Sum(A*B)
When that is not possible use the row context

Costs =
sumx(summarize(Project, project[ID],"_dat",SUM('DATA'[Hours done]) ,"_hrs",SUM('Personel'[Hourly rate])),[_dat]*[_hrs])

 

 if you need more help make me @

Appreciate your Kudos.

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

Hello,

 

I try your code but I have exactly the same result

My both table are DATA and Personel

 

 

Costs =
SUMX(SUMMARIZE(DATA;DATA[Project];"_dat";sum(DATA[Hours done]);"_hrs";Sum(Personel[Hourly rate]));[_dat]*[_hrs])
 
image.png

It's ok the summurize must be done on Name and it's ok

 

Thank you very much for your help

 

image.png

@Vincent_Jaquet , that is what you could have found best. As I am not aware best of your data model. Kudos !!

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

Helpful resources

Announcements
Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

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