Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Difference Between Consecutive Time ????

Hi all,

I need to have difference between two consecutive dates of the same column.

I am trying the expression as  (login time)-above (login time), still getting no success.

Any sort of help in same is appreciated.

Sample excel file has been attached for reference.

Thanks

Mayank

1 Solution

Accepted Solutions
fdelacal
Specialist
Specialist

PLEASE SEE QVW ATACH

HOPE THAT HELPS YOU REGARDS.

THE FIELD DIFERENCA IS I CREATE WITH THE DIFERENCES

View solution in original post

2 Replies
kumarnatarajan
Partner - Specialist
Partner - Specialist

Hi,

Please find the attached file.

Script:

Temp:

LOAD * INLINE [
    Login Time
    5/2/2013 8:18:05 AM
    5/2/2013 8:18:31 AM
    5/2/2013 10:18:06 AM
    5/2/2013 10:18:09 AM
    5/2/2013 10:24:28 AM
    5/2/2013 11:11:10 AM
    5/2/2013 11:11:13 AM
    5/2/2013 11:15:24 AM
    5/2/2013 4:45:35 PM
    5/2/2013 4:45:38 PM

]
;


NoConcatenate LOAD [Login Time],Interval([Login Time]-Previous([Login Time])) as Difference Resident Temp;
DROP Table Temp;

fdelacal
Specialist
Specialist

PLEASE SEE QVW ATACH

HOPE THAT HELPS YOU REGARDS.

THE FIELD DIFERENCA IS I CREATE WITH THE DIFERENCES