I want to filter tickets by sprint, so I put the sprint dimension as page. However, sometimes issues change sprints (after time spent have been declared), and it is important that the report shows issues that are currently in in the sprint filtered
(regardless of their sprint at the time the time spent was declared) , and that all times spent appear in the table (not just times reported when the issue was in the sprint).
I tried several modifications of my measure but I didn’t got what I wanted, here is my measure :
Sum(
Filter(
Descendants([Issue].DefaultMember,[Issue].[Issue]),
[Measures].[Issue Sprint] = [Sprint].CurrentHierarchyMember.Name
),
CASE WHEN
(
[Measures].[Issues created],
[Time].Currenthierarchy.Defaultmember
)>0
THEN
Sum([Measures].[Hours spent],[Sprint].Currenthierarchy.Defaultmember)
END
)
@martins.vanags , Yes my report is filtered by sprint, and just one is selected in page filter
(maybe in the future I would try to be able to filter over several sprints but I’m not there, currently I have only one filtered sprint)
However, I forgot to mention some information: in rows, I also have another dimension (logged by), and another filter (Time). And I see that by removing this logged by dimension in rows, and the Time filter, the proposed measure works.
I’m going to think about how to adapt the measurement to make it compatible with these two dimensions, if you have any suggestions I’m all ears.
thank you @martins.vanags , I did some tests, and what is blocking is that I selected all the members of the dimension logged by at the “User” level. With this selection (and the measure you gave me), I miss some data in my table (the same as in my initial post: the times spent when the issue was not in the sprint), but if I delete it, then it seems correct.
However, I would like to keep it to simplify the reading.
@ThomasLegrand
what exactly do you mean “but If I delete it”?
What do you delete in this scenario?
Also, could you check if the missing hours are logged on issues that have “(no sprint)” property in eazyBI report (if you create a completely new report with issues in rows)
If I remove the “logged by” dimension from the report, the table is complete (I’m looking at the red cell, whose time spent was entered before the issue was put into the “RUN Mars-Avril 2023” sprint).