Here's what my data looks like
Status | DOW | HOD | Seconds Spent
AD | 4 | 5 | 1200
TS | 4 | 5 | 10560
AD | 4 | 6 | 2600
What I need to do is create a matrix, day of week in the columns, hour of day in the rows, total seconds spent on each status as values (1 matrix per status code). Easy enough with a pivot but the problem is when total seconds exceeds an hour (3600 seconds). For instance, if a status starts at 10:30am and lasts 2 hours, it falls under 3 HOD bins. How can I solve this?
Bookmarks