Skip to main content
Announcements
See why Qlik is a Leader in the 2024 Gartner® Magic Quadrant™ for Analytics & BI Platforms. Download Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to sum and calculate time?

Skärmavbild 2014-11-03 kl. 15.41.36.png

Hi all, I have this data, and would like to sum the time worked. P_TYPE = 1 is for when You sign in, and P_TYPE = 2 is for signing out for breaks or end of day.  so my question is hos to do this?

Thanks in advance!

11 Replies
its_anandrjs

Hi,

It seems ok also when you create a resident table as (PLOCKARE_TID) did you try to drop the earlier table PLOCKARE_TIDSTAMPLINGAR at the end of the load script

Drop Table PLOCKARE_TIDSTAMPLINGAR;

Regards

Anand

Not applicable
Author

Hi,

I have dropped the earlier table now, but still not getting the desired effect.

I have made a minor change in the if statement. but its not calculating the time right?

Skärmavbild-2014-11-06-kl.-13.23.07-(2).jpgSkärmavbild 2014-11-06 kl. 13.21.34.png