eazybi time of day

Paul Shirley December 12, 2016

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

1 vote
Answer accepted
eazyBI Support
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 14, 2016

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

0 votes
Paul Shirley December 14, 2016

Brilliant! That worked perfectly, thanks very much Martins smile

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events