Calculating with dates in eazyBI

Hi,

 

two questions in eazyBI:

1) I have two fields of issue type "Date Picker". I'm looking for a function similar to average resolution days but I need the time between the two customfields and not from created to resolved. If i use something like 

[Measures].[Field B] - [Measures].[Field A]

i get an error. Also it only shows the error message, when I drill down into the single issues. If i only drill down until the issue level (e.g. "Bug"), I only get a blank field.

 

2) It's almost the same question but for fields of issue type "Date Time Picker". Here I was awaiting a timedifference in hours or minutes but also only got an error.

 

Can anyone provide a correct calculation for the fields?

 

Thanks in advance

Jan

1 answer

1 accepted

Hi Jan,

 

In that case, you could ensure that you have imported these date fields as Issue properties and then you could try using "DateDiffDays" and "DateDiffHours" functions to calculate the difference between two date or date/time fields on Issue level.

DateDiffDays(
[Measures].[Issue Actual start date],
[Measures].[Issue resolution date]
)

 

difference in days.jpg

calculate difference between date fields.jpg

 

 

Here you could read more about DateDiffDays function

https://docs.eazybi.com/display/EAZYBI/DateDiffDays

 

In a similar way, you could create a new calculated measure for DateDiffHours or DateDiffMinutes by choosing an appropriate formatting for it. 

 

Please contact support@eazybi.com if you have further questions regarding this!

 

Kind regards,

Martins Vanags / support@eazybi.com

Hi Martins,

 

thanks, that was exactly what I was looking for.

 

Kind Regards,

Jan

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 yesterday in Jira

5 ways you can make the most of Jira Software and Bitbucket Cloud

As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...

56 views 0 5
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