Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
MK9885
Master II
Master II

Subtract 2 different rows from 2 different columns

Hi,

I've a requirement to create a new column based on subtracting 2 date columns

2019-11-25_133337.png

In above image, I'd like to get Turn around time by doing 10:30 - 10-45 and then 12:17 - 12:44

To create a new column with this...

Tried peek, above rangesum but doesn't seem to work.

Can anyone please tell me how to get TAT from previous time to current time in next row?

@sunny_talwar 

 

Thanks.

Labels (1)
1 Solution

Accepted Solutions
MK9885
Master II
Master II
Author

Maybe I found the solution...

Divided into 3 exp. not ideal but works

Exp1: above(Total (Column2))-(Column2)

Exp:2: below(Total (Column1))-(Column1)

Final Exp: below(Total ([Exp1]))-([Exp2])

View solution in original post

1 Reply
MK9885
Master II
Master II
Author

Maybe I found the solution...

Divided into 3 exp. not ideal but works

Exp1: above(Total (Column2))-(Column2)

Exp:2: below(Total (Column1))-(Column1)

Final Exp: below(Total ([Exp1]))-([Exp2])