eazybi time of day

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

Aggregate(Filter(
[Time].[Day].Members,
[Time].CurrentMember.get('Week day name') MATCHES
'####day'
)
)

Can I further this by time of the day also?

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

Monday between 4pm and 5pm?

Thanks 

 

2 answers

1 accepted

Accepted Answer
1 vote

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:

 

[jira.customfield_hour_of_day]
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
Posted Tuesday in Featured Groups

Tuesday tips & tricks: What is the Atlassian Community?

It's officially Tuesday, which means it's officially time for another tip to help you better navigate this space we call the Atlassian Community. 😄 I got a great question from community member, Sa...

122 views 6 8
View post

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