Hi,
i have a report that uses, a row, a calculated member for “Last Closed Sprint”.
In the beginning, I closed sprint A and opened B and the result showed me sprint A results. This is good.
Then closed B and opened C. i expected to see B results, but now i have two rows. on the “last closed sprint” (i.e. B) and one for A.
When i closed C and open D i will have A, B and C as the “Last closed Sprint”.
for (2) i want to see only B and for (3) only C.
This is how “Last Closed Sprint” is defined:
Aggregate(
Tail(Order(
Filter(ChildrenSet([Sprint].[MyBoard]),
[Sprint].CurrentHierarchyMember.getBoolean(‘Closed’) AND
NOT IsEmpty([Sprint].CurrentHierarchyMember.get(‘Complete date’))),
[Sprint].CurrentHierarchyMember.get(‘Start date’),
BASC
), 1)
)
Hi @meravbe if you are retrieving only one Sprint.
Why do you want to order? You will receive only one.
The issue could be on the Filter for the CHildrenSet you are reading.
You can check with this code to read the last:
Aggregate(
Generate(
-- get all boards
[Sprint].[Board].Members,
-- access all children - sprints from the board and get the last closed
Tail(
Filter(
[Sprint].CurrentMember.Children,
[Sprint].CurrentMember.GetBoolean("Closed")),
-- 1 last (from Tail) closed sprint from a board
1)
-- address the first (0) member from a set
.Item(0)
)
)
That a different level. I guess that will disappear if you go into the Sprints Dimensions, select “All Sprints” then in the report click on the “+” to show all of them.
After that “close the All SPrints” clicking on the “-” and then deselect the “All Sprints” in the Sprint DImension.
FInally, click on the “+” for the “Last Completed xx Sprint2” to show only them