Jira "cleanup" stats

Hi @guya1976

Happy to help!

Have you already imported this hierarchy into eazyBI?
If not, please follow this documentation page and community post to do so:
https://docs.eazybi.com/eazybi/data-import/data-from-jira/advanced-data-import-options/additional-issue-hierarchies

When you’ve set up the hierarchy, you can use the Issue dimension with the Initiative level selected in the Rows section and use a similar formula as previously to find open issues in resolved initiatives:

Sum(
  Filter(
    Descendants([Issue.HierarchyName].CurrentMember, [Issue.HierarchyName].[Initiative]),
    NOT IsEmpty([Issue.HierarchyName].CurrentMember.Get('Resolved at'))
  ),
  CASE WHEN
  [Measures].[Issues created] > [Measures].[Issues resolved]
  THEN
  1
  END
)

Replace the HierarchyName with the name you’ve specified in the Advanced settings when setting up this hierarchy.

To do the same check with Epic level select in Rows, simply change the level that the formula is pointing towards:

Sum(
  Filter(
    Descendants([Issue.HierarchyName].CurrentMember, [Issue.HierarchyName].[Epic]),
    NOT IsEmpty([Issue.HierarchyName].CurrentMember.Get('Resolved at'))
  ),
  CASE WHEN
  [Measures].[Issues created] > [Measures].[Issues resolved]
  THEN
  1
  END
)

For closed issues with empty resolutions, use the last formula from my previous reply.

Let me know once you have this set up, and we’ll continue with the next metrics.

​Best regards,
​Nauris