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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
kitcatnj
Frequent Visitor

Calculated field total is showing FIRST and not the total

I have 2 fields I am using to calculate the duration of a Work Order

I subtract the complete time from In progress time. Thats my duration of time a tech worked.

When i do this as a measure, _ActiveWorkTime, i get the right numbers for each different WO, but it doesn't total properly. I get the FIRST timestamp as the total. 

_ActiveWorkTime = DATEDIFF(min('wo'[cmptime]),min('wo'[iprtime),MINUTE)

 

When that didn't work I tried adding a new column, _CalcWOduration. Left it as a duration field. I get a decimal field with NO total at the end.  What am i doing wrong please!!!!

 

kitcatnj_1-1690819636566.png

 

Thank yoU!

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @kitcatnj ,

 

According to your description, here are my steps you can follow as a solution.

(1) This is my test data. 

vtangjiemsft_0-1690854259152.png

(2) We can create a measure. 

_ActiveWorkTime2 = SUMX(VALUES('wo'[tech]),[_ActiveWorkTime])

(3) Then the result is as follows.

vtangjiemsft_1-1690854315863.png

Best Regards,

Neeko Tang

If this post  helps, then please consider Accept it as the solution  to help the other members find it more quickly. 

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @kitcatnj ,

 

According to your description, here are my steps you can follow as a solution.

(1) This is my test data. 

vtangjiemsft_0-1690854259152.png

(2) We can create a measure. 

_ActiveWorkTime2 = SUMX(VALUES('wo'[tech]),[_ActiveWorkTime])

(3) Then the result is as follows.

vtangjiemsft_1-1690854315863.png

Best Regards,

Neeko Tang

If this post  helps, then please consider Accept it as the solution  to help the other members find it more quickly. 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors