EazyBI - average time in several statuses

We have several statuses - lets say "discovery", "in execution". And I would like to compute average time which issues stays in both statuses.



Issue1: Discovery 5, in execution 10 = in total 15 days

Issue2: Discovery 10, in execution 15 = in total 25 days


Average I am looking for should be 20 days.


But I so far I have been able to compute using "Average working days in transition status" measure is average in Discovery (7.5) and In Execution (12.5). And if I use aggregate on those two statuses, I get average of all the time spent in statuses (which is 10).


Can you help me please? Many thanks!

1 answer

Hi Martin,

Measure "Average working days in transition status" returns average value of all data set - for each issue time spent in each transition status.
In your case, you may define a new calculated measure based on the measure "Average days in transition status." You may get aggregated time in both transition statues for each issue and then calculate the average from aggregated transition time.
Your formula may look like this:

    -- iterates through all issues which has spent time in any of both statuses
    Descendants([Issue].CurrentMember, [Issue].[Issue]),
      [Transition Status].[discovery],
      [Transition Status].[in execution]},
      [Measures].[Days in transition status]) > 0),
  --calculates average from time in both statuses
    [Transition Status].[discovery],
    [Transition Status].[in execution]},
    [Measures].[Days in transition status])

This is a general approach to get average days in several transition statuses and could be time-consuming as it iterates through all issues. You may optimize this formula by adding additional criteria to the Filter() to reduce data set. Feel free to contact eazyBI support for more detailed assistance then.

Zane / support@eazybi.com

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Bridget Sauer
Published Thursday in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

356 views 0 6
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you