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.

 

Example:


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:

Avg(
  Filter(
    -- iterates through all issues which has spent time in any of both statuses
    Descendants([Issue].CurrentMember, [Issue].[Issue]),
    Aggregate({
      [Transition Status].[discovery],
      [Transition Status].[in execution]},
      [Measures].[Days in transition status]) > 0),
  --calculates average from time in both statuses
  Aggregate({
    [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.

Regards,
Zane / support@eazybi.com

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Tuesday in Marketplace Apps

If you’re an Atlassian app developer, you’ll want to know about Atlas Camp!

This September 6-7, hundreds of Atlassian App developers will flock to Barcelona Spain to build skills, discover product roadmaps, meet face-to-face with the Atlassian team, and learn how to extend t...

130 views 0 4
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