The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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!!!!
Thank yoU!
Solved! Go to Solution.
Hi @kitcatnj ,
According to your description, here are my steps you can follow as a solution.
(1) This is my test data.
(2) We can create a measure.
_ActiveWorkTime2 = SUMX(VALUES('wo'[tech]),[_ActiveWorkTime])
(3) Then the result is as follows.
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.
Hi @kitcatnj ,
According to your description, here are my steps you can follow as a solution.
(1) This is my test data.
(2) We can create a measure.
_ActiveWorkTime2 = SUMX(VALUES('wo'[tech]),[_ActiveWorkTime])
(3) Then the result is as follows.
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.