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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Fadoua M. Boualem
Published Monday in Trello

Using Trello to manage events

As a Jira power user, I was at first doubtful that Trello could benefit my workflow. Jira already uses boards (ones you can customize!), so why would I even need to use Trello?! In this post you will...

510 views 8 9
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