eazybi time of day

I have created calculated members for each day of the week as per the following

[Time].CurrentMember.get('Week day name') MATCHES

Can I further this by time of the day also?

i.e. Thursday between 9am and 10am?

Monday between 4pm and 5pm?



2 answers

1 accepted

1 vote
Accepted answer

Hi Paul,

In that case, you could create a new custom field for "Hour of Day" using Javascript in your eazyBI advanced settings that would create timestamps based on dates when issue was created

Please add these lines to your eazyBI advanced settings:


name = "Hour of Day"
data_type = "integer"
dimension = true
javascript_code = '''
var hours = new Date(Date.parse(issue.fields.created)).getHours();
issue.fields.customfield_hour_of_day = hours;


Then you could import (via eazyBI import settings) this new custom field as a separate dimension in your eazyBI account. 

After that,  you could use this new dimension together with measure "Issues created" since the timestamps are imported from created dates, and together with "Time" dimension weekly hierarchy where you have created your calculated members for each day of the week.


Hour of Day.jpg


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


Kind regards,

Martins Vanags / support@eazybi.com

Brilliant! That worked perfectly, thanks very much Martins smile

Suggest an answer

Log in or Sign up to answer
Community showcase
Published an hour ago in Agile

How Scrum works? It starts with training and education

To answer “How scrum works,” most of the teams I've worked with first addressed the question: “where to start?”  That question applies to both implementation and improvements on the Scrum framew...

20 views 0 0
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