Calculate Total Number of days between two date stamps for multiple issues (EazyBi)

Essentially I need to find the aggregate of "Days in 'New'" across issues. 

I have a table that will spit out the total but I need a formula that includes the total number of "Days in 'New'" and divide it by the issues with open date to get an average. 

So far I have only been able to calculate the "Days in New" for each individual issue.

I am using two different date stamps to calculate days in new/open/pending.

This was my first attempt at the formula:

image.png

And these are the results. As you can see, If I sort by individual issues it works fine but when I collapse it to get an average of the project I don't get any results.

image.pngimage.png

1 answer

This widget could not be displayed.

Hi Simon,

 

Well done with the code so far! It works correctly at issue level indeed.

To make it work also on the project level in "Issue" dimension, you may want to use the following code which is universal

CASE WHEN
[Measures].[Issues with open date] > 0
THEN
NonZero(
AVG(
Filter(
Descendants([Issue].CurrentHierarchyMember,[Issue].[Issue]),
Not IsEmpty([Measures].[Issue Open Date])
AND
[Measures].[Issues with open date]>0
),
DateDiffDays(
[Measures].[Issue created date],
[Measures].[Issue Open Date])
)
)
END

 

Kind regards,

Martins / eazyBI team

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

119 views 2 0
Join discussion

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