Forum Discussion
Reaction-/Resolution time calculations (with a twist)
Figured out something!
The first modified timestamp is always the same as ticket creation date. So the function always give 0 seconds for reaction time. The timestamp which is the same as "ticket created" timestamp needs to be ignored in function.
Would datediff work in this scenario? I have used it before but that modified timestamp and distincting ticket ID:s gives me headache.
- Vvelarde9 years ago
Community Champion
Anonymous
Hi, try with these measures.
ReactionTime = DATEDIFF ( MIN ( Table1[Ticket created] ), CALCULATE ( MIN ( Table1[Ticket modified] ), FILTER ( Table1, Table1[Ticket modified] <> MIN ( Table1[Ticket created] ) ) ), HOUR )ResolutionTime = DATEDIFF ( MIN ( Table1[Ticket created] ), CALCULATE ( MAX ( Table1[Ticket modified] ), FILTER ( Table1, Table1[Ticket modified] <> MIN ( Table1[Ticket created] ) ) ), HOUR )- Anonymous9 years agoNot applicable
This works! Any hints on how I can get output in Days and hours instead of full hours?
Thank you very much both for contributing!
- Anonymous9 years agoNot applicable
I'm experimenting with formula found here on forum. I changed austinsense measure to give seconds but with my Resolution-Display-measure function is calculating only full days. Any help on this? My data looks like following:
Created and Modified columns are correct type:
Reaction/Resolution -measures use following function:
Reactionmeasure-seconds =
DATEDIFF (
MIN ( Tickets[Created] );
CALCULATE (
MIN ( Tickets[Muokattu] );
FILTER ( Tickets; Tickets[Muokattu] <> MIN ( Tickets[Created] ) )
);
SECOND
)------
Resolutionmeasure-seconds =
DATEDIFF (
MIN ( Tickets[Created] );
CALCULATE (
MAX ( Tickets[Muokattu] );
FILTER ( Tickets; Tickets[Muokattu] <> MIN ( Tickets[Created] ) )
);
SECOND
)Resolution-Display =
FORMAT (
INT (
IF (
MOD ( [Resolutionmeasure-seconds]; 60 ) = 60,0;
MOD ( [Resolutionmeasure-seconds]; 60 )
)
+ IF (
MOD ( INT ( [Resolutionmeasure-seconds] / 60 ); 60 )
= 60,0;
MOD ( INT ( [Resolutionmeasure-seconds] / 60 ); 60 )
* 100
)
+ INT ( [Resolutionmeasure-seconds] / 3600 )
* 10000
);
"0:00:00"
)