Emp ID…DateTime…Required
000001…20-jan-2009 13:30…This should be 0
000001…20-jan-2009 17:30…Difference between this row time and previous row time (20-jan-2009 13:30 minus 20-jan-2009 17:30)
000001…21-jan-2009 03:30…Difference between this row time and previous row time (21-jan-2009 03:30 minus 20-jan-2009 13:30)
000002…20-jan-2009 01:00…The calculation should reset here, as emp id changed. This should be 0
000002…20-jan-2009 13:30…Difference between this row time and previous row time (20-jan-2009 13:30 minus 20-jan-2009 01:00)
I don’t know whether this is applicable in XIR2, but in XI 3.1 pdf has explanation for Previous function and its parameters(one is reset_dims). Have a look into it. And for difference, use something like this. [DateTime]-Previous([DateTime];optional parameters)