eazybi - cumulative hours spent within time frame

Hi,

I'm looking for the definition of the member : "cumulative hours spent within a time frame". From this definition https://community.atlassian.com/t5/Product-Apps-questions/Cumulative-Sprint-Time-spent/qaq-p/356858 I have the time spent in a Sprint but I don't succeed to adapt it to timeframe instead of sprint.. Can anyone help me ? Thanks very much

 

Regards

1 answer

1 accepted

Hi, 

 

for a cumulative hour spent over all previous time periods, use function PreviousPeriods:

Sum(
  PreviousPeriods([Time].CurrentHierarchyMember),
  [Measures].[Hours spent])

 

If you want to sum this value over a specific time period (let's say, over last 100 days), then create a calculated member "Last 100 days" in Time dimension to aggregate those days:

Aggregate({
Filter([Time].[Day].Members,
DateBetween([Time].CurrentMember.StartDate,'100 days ago','today')
)
})

 

Then use this calculated member in the cumulative sum (from the first member of the defined time period until each current date in rows):

Sum(
{Childrenset([Time].[Last 100 days]).Item(0):
[Time].CurrentMember},
[Measures].[Hours spent]
)

 

To align the time period in report rows and calculation, select the same calculated Time member in the report rows.

 

Ilze / support@eazybi.com

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
Bridget Sauer
Published Thursday in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

77 views 0 5
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