You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
Hi!
I have the following code. It sums the story points of all issues whose Planned End is before the Sprint End Date. Now, I want to add a new condition: this sum should only be done if the issue fix version is different than the one choosed in the picture.
How to proceed?
Sum(
Filter(
DescendantsSet([Issue].CurrentMember,[Issue].[Issue]),
Not IsEmpty([Measures].[Issue story points])
AND
DateCompare([Issue].CurrentMember.Get('Planned End'),[Sprint].CurrentMember.Get('End date')) < 1
),
CASE WHEN
[Measures].[Issues created]>0
THEN
[Measures].[Issue story points]
END
)
The way that worked for me was this:
I have created a measure named Story Points of Unseen Issues
Filter(
DescendantsSet([Issue].CurrentMember,[Issue].[Issue]),
Not IsEmpty([Measures].[Issue story points])
AND
DateCompare([Issue].CurrentMember.Get('Planned End'),[Sprint].CurrentMember.Get('End date')) < 1
AND
InStr([Issue].CurrentHierarchyMember.Get('Fix version IDs'), '82048') > 0
),
CASE WHEN
[Measures].[Issues created]>0
THEN
[Measures].[Issue story points]
END
)
And then I have subtracted it from the total story points:
Sum(
Filter(
DescendantsSet([Issue].CurrentMember,[Issue].[Issue]),
Not IsEmpty([Measures].[Issue story points])
AND
DateCompare([Issue].CurrentMember.Get('Planned End'),[Sprint].CurrentMember.Get('End date')) < 1
),
CASE WHEN
[Measures].[Issues created]>0
THEN
[Measures].[Issue story points]
END
) - [Measures].[Story Points of Unforseen Issues]
If there is a better way, tell me!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.