Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,558,758
Community Members
 
Community Events
184
Community Groups

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

1 comment

Daina Tupule
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
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
TAGS
AUG Leaders

Atlassian Community Events