Forum Discussion
Anonymous
4 years agoNot applicable
Hold Time between 2 calls
Hello Guys, I want to calculate the hold time between 2 calls of indiviual source on specific date i mean suppoose source 602 call date is 1-9-2021 11:16:06 and his end time is 1-09-2021 11:16...
- Anonymous4 years ago
Hi Anonymous
You can try this code to achieve your goal.
Diff = VAR _CurCallStart = 'Table'[Call Start] VAR _LastCallEnd = CALCULATE ( MAX ( 'Table'[Call End] ), FILTER ( 'Table', 'Table'[Src] = EARLIER ( 'Table'[Src] ) && 'Table'[Date] = EARLIER ( 'Table'[Date] ) && 'Table'[Call End] < EARLIER ( 'Table'[Call End] ) ) ) VAR _TIMEDIFF = _CurCallStart - _LastCallEnd RETURN IF ( _LastCallEnd = BLANK (), TIME ( 0, 0, 0 ), _TIMEDIFF )Result is as below. Note to change the [Diff] column Data type to Time and Format to h:nn:ss.
Best Regards,
Rico ZhouIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
VijayP
4 years agoCommunity Champion
Anonymous
to get the result as below use this file
- Anonymous4 years agoNot applicable
Thanks but it shows time between call I want the hold time between 2 calls