I have a requirement to create a view which would be working with the date and time ranges...
We have a data in fact table which stores employee time-in and time-out punches, structure of this table is as follows...
- EmployeeID
- Date
- TimeIn
- TimeOut
Same employee can have multiple records for the a given date example they logout when they go for lunch break and login again when they are back.
We want to aggregate this fact table data to display total production minutes per hour. Something like below...
- Date Hour number
- Total Production minutes logged
I know we can achieve this by means of SQLScript, I am interested to know whether this can be achieved by use of information models i.e., Analytic and Calculation views.
Thanks in advance.
Regards,
Sunny