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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Labor Costs Dax [issue]

Hello all,

Currently I have a the following Dax measures

Labor Rate = 
SUM(cf[rate_hourly])
Labor Hours = 
SUM(wrhwr[act_labor_hours])

and finally 

Labor Costs = [Labor Hours] * [Labor Rate]


Now when using the "Labor Costs" measure inside a table I want to have the total amount be displayed however the total amount displayed is incorrect from the rows in the table if I was to manually add them up.
Example below

labor cost issue.PNG

These Values do NOT equal $2,029.23 hwever they do equal $521.72, how can i make sure my Labor Costs is displayed correctly.

Thanks in advance.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

I think you'll want to use SUMX

 

Labor Cost= sumx(wrhwr, [rate_hourly]*[act_labor_hours])

 

 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

I think you'll want to use SUMX

 

Labor Cost= sumx(wrhwr, [rate_hourly]*[act_labor_hours])

 

 

Anonymous
Not applicable

Thank you

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.