Count of overdue issues in time dimension, split by status at the time they were overdue

Update to the above - based on this topic, I think this can be achieved by injecting the following:

(
([Measures].[Issues history], [Transition Status].[Action Close Out])>0
OR
([Measures].[Transitions from status], [Status].[Action Close Out])>0
)

However, the calculation has become so complicated that it times out and I can’t get it to run.