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

View all the Fabric Data Days sessions on demand. View schedule

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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors