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 Join to answer
Community showcase
Emilee Spencer
Published yesterday in Marketplace Apps

Marketplace Spotlight: DeepAffects

Hello Atlassian Community! My name is Emilee, and I’m a Product Marketing Manager for the Marketplace team. Starting with this post, I'm kicking off a monthly series of Spotlights to highlight Ma...

38 views 0 3
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot