So what I wanted to know is that, is there a way to display the result of the actual burndown rate as previous day’s result, if no test executions has been made instead of the total executions? which in this case is 31.
So for example: On may 18th it displayed the total executions which is 31 (Which means no tests were executed) but instead I want it to report what happened on may 15th which is 20 executions, but for may 18th:
Hi @Rubina
there is an option to return the value of a previous member when “Time” dimension is used.
CASE WHEN
[Measures].[Test executions]>0
THEN
[Measures].[Actual burndown rate]
ELSE
Sum(
(
[Measures].[Actual burndown rate],
[Time].currenthierarchyMember.PrevMember
)
)
END
If that didn’t help, please share the report definition
CASE WHEN
[Measures].[Test executions]>0
THEN
Sum(
[Measures].[Actual burndown rate]
)
ELSE
Sum(
(
[Measures].[Actual burndown rate],
[Time].currenthierarchyMember.PrevMember
)
)
END
The solution for the Actual Burn-down code is to first add the Actual Burn-down of ATM Test Cases Executed_ActualTest1:
CASE WHEN
[Measures].[Actual Burn-up of ATM Test Cases Executed]>0
THEN
([Measures].[Actual Burn-up of ATM Test Cases Executed])
ELSE
(
Cache(
DefaultContext((
[Measures].[Actual Burn-up of ATM Test Cases Executed],
[Project].CurrentMember,
[TM4J Test Plan].CurrentMember,
Tail(Filter(
[Time].[Day].Members.Item(0):
Tail(Descendants([Time].CurrentMember, [Time].[Day])).item(0),
CACHE (Not IsEmpty(Defaultcontext((
[Measures].[Actual Burn-up of ATM Test Cases Executed],
[Time].CurrentMember,
[Project].CurrentMember,
[TM4J Test Plan].CurrentMember
))))
)).item(0)
))
)
)
END
And then to have another calculated member defined such as ActualBurndown which will be used in the report columns:
CASE WHEN
[Measures].[Actual Burn-down of ATM Test Cases Executed_ActualTest1]>0
THEN
Nonzero([Measures].[Actual Burn-down of ATM Test Cases Executed_ActualTest1])
ELSE
0
END