Count issues that passed by certain status and not closed

Not sure if my approach is the best practice. But here is the method I used:
I created 2 calculated measures.
Lets say first one “Was in progress”- showing number count of issues were in progress in the time frame

( [Measures].[Transitions to status], 
  [Transition Status].[In Progress])

Second one will sum all “Was In Progress” but not resolved in the selected time frame.

Sum(
  Filter(
    Descendants(
      [Issue].CurrentHierarchyMember,[Issue].[Issue]
    ),
  [Measures].[Was In Progress]>0 and not([Measures].[Issues resolved]>0)
  ),1
)