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

Accepted Answer
0 votes

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
Community showcase
Posted Thursday in Marketplace Apps

You + one app + a desert island...

Hi all! My name is Miles and I work on the Marketplace team. We’re looking for better ways to recommend and suggest apps that are truly crowd favorites, so of course we wanted to poll the Community. ...

714 views 4 5
Join discussion

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