Showing results for 
Search instead for 
Did you mean: 
masplin Member

Allocating call time into time buckets

I have a set of data that looks like this



The task is to work out how many seconds of each call is in 30min time buckets from 8:00 to 19:00

so first case is just 87 in the 12:30 to 13:00 bucket (called 12:30 bucket). The idea is to workout for various logged activities how much time the staff take in each bucket to determine more effeciaint staffing/rostering. 


However some call spread over up to 4 time buckets.  For a call that was say starting 13:45:00 finishing 14:15:00 the result needs to be 900 in 13:30 buckets and 900 in 14:00 bucket .


I've read quite a few related posts but cant see how to change thme to meet this requirement. I'm sure its trivial for the much cleverer people on this forum. Thisis the start of a big new project so want to get this right and not write some horrible inefficient solution as seems there will be an elegant one out there. 


Thanks in advance for any advice



Community Support Team
Community Support Team

Re: Allocating call time into time buckets

Hi @masplin ,


I uploaded my test file, you can download and refer to it.



Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
masplin Member

Re: Allocating call time into time buckets



Yes it works, but not quite what i was expecting as was hoping to create a measure based off a table of time buckets not 18 different columns.  This will be an issue for doing things like the average across the day as will have to be written as an average of 18 columns.  


I was thinking of a table of buckets 









Then feed these times into a calculation so if I put [Start] on the rows of a table it woudl do the calcaution as you have done.  Is it possible to tweak your solution so the VAR aren't fixed  but come from a table of values?




Helpful resources

October 2019 Community Highlights

October 2019 Community Highlights

October was a busy month in the community. Read the recap article to learn about some of the events and content.

New Badges

Incoming: New and Improved Badges

Exciting news: We've given our badges an overhaul and added brand news ones.

Ask Amir Anything

Exclusive LIVE Community Event No. 2 – Ask Amir Anything

Next in our Triple A series: Ask Amir Netz questions about the latest updates, features and future.

Analytics in Azure virtual event

Analytics in Azure virtual event

Experience a limitless analytics service built to ingest, prep, manage, and serve data for immediate use in Power BI.

Users Online
Currently online: 359 members 3,695 guests
Please welcome our newest community members: