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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Jul 10, 2018 in Marketplace Apps

If you’re an Atlassian app developer, you’ll want to know about Atlas Camp!

This September 6-7, hundreds of Atlassian App developers will flock to Barcelona Spain to build skills, discover product roadmaps, meet face-to-face with the Atlassian team, and learn how to extend t...

171 views 0 4
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