It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

Simon Schermerhorn Nov 07, 2017

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.pngSee above

1 comment

Daina Tupule Nov 26, 2017

Hi Simon

You are creating a calculation using Issue properties "Issue created date", "Issue open date". Issue properties work at issue level only. Therefore a calculation has a result for individual issues but not for total calculation.

 

For total calculation, you would like to define a set of issues and calculate an average over this set.

AVG(set, numeric_expression)

Set should be an issue set filtered by this date

Numeric_expression is the one you would like to use for average calculation - date diff days between issue creation date and an open date.

NonZero(AVG(
Filter(
Descendants([Issue].CurrentMember, [Issue].[Issue]),
NOT isempty([Measures].[Issue open date])
AND
DateInPeriod(
[Measures].[Issue open date],
[Time].CurrentHierarchyMember
)
AND
([Measures].[Issues created],
[Time].CurrentHierarchy.DefaultMember) > 0),
DateDiffDays
([Measures].[Issue created date],
[Measures].[Issue open date])
))

Please set the formatting of your calculated measure to decimal as well.

 

Daina / support@eazybi.com

Comment

Log in or Sign up to comment
Community showcase
Published in Jira Software

Early Access: If you use Jenkins and Jira Software Cloud, you need to read this!

The Jira Software Cloud Team has been busy working on a simple, secure, and reliable way to integrate your build and deployment information from Jenkins with Jira Software Cloud. This means you don’t...

318 views 0 9
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you