Forum Discussion
Anonymous
3 years agoNot applicable
RESOLUTION TIME
How can I compute the resolution time per ticket category and status category? These are the cases: 1. Time created (RESOLVED) - Time created (IN PROGRESS) 2. (Time created (PENDING) - Time create...
Greg_Deckler
Community Champion
3 years agoAnonymous See my article on Mean Time Between Failure (MTBF) which uses EARLIER: http://community.powerbi.com/t5/Community-Blog/Mean-Time-Between-Failure-MTBF-and-Power-BI/ba-p/339586.
The basic pattern is:
Column =
VAR __Current = [Value]
VAR __PreviousDate = MAXX(FILTER('Table','Table'[Date] < EARLIER('Table'[Date])),[Date])
VAR __Previous = MAXX(FILTER('Table',[Date]=__PreviousDate),[Value])
RETURN
__Current - __Previous