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

Allocating call time into time buckets

I have a set of data that looks like this

Capture.PNG

 

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

Mike

 

2 REPLIES 2
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.

1-1.PNG

 

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
Member

Re: Allocating call time into time buckets

Hi

 

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 

 

Start    

08:00   

08:30   

etc

 

Interval=0.5

 

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?

 

Thanks

Mike

Helpful resources

Announcements
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: