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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

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
Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

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

Jan NL Carousel

Fabric Community Update - January 2025

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