In my report I use the predefined measure: Days in transition status.
In the output this gives me number of days an issue was in status" In Progress".
I want to use this value in a calculated measure. How do I do that?
I have tried to store this value in a calculated measure, but I have been unsuccessful.
Second question:
The value above counts all days in this status.
In some cases, an issue returns to a previous state, eg. Submitted. And then after a while it will be transitioned to In Progress again.
Suppose I only want to count the number of days since the last time it went into In Progress. How could I do that?
(
[Measures].[Days in transition status],
[Transition Status].[In Progress]
)
To count the time spent in status “In Progress” but only the last time the issue entered “In Progress” status, I recommend defining a new calculated measure with formula below using “DateDiffDays” (DateDiffDays) function and again the Tuple function with the measures “Transition to/from status last timestamp”
DateDiffDays(
TimestampToDate(([Measures].[Transition to status last timestamp],
[Transition Status].[In Progress])),
TimestampToDate(([Measures].[Transition from status last timestamp],
[Transition Status].[In Progress]))
)