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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
joeybird
Creator III
Creator III

differnce in temperatures - ignore nulls

Hiya

I need to work out time difference between one date time stamp and another.

temperature of a room is taken on regular intervals during the day. This date time is recorded in the column, DateTimeTaken

=interval(max({<Temperature={'>=35'}>} DateTimeTaken) - min({<Temperature={'<=35'}>}DateTimeTaken) ,'h:mm' )

I need to calculate the time take for the room to reach 35.

sometimes the Temperature column is not filled in ''null'

please help

1 Solution

Accepted Solutions
swuehl
Champion III
Champion III

I guess it should be

=interval(Min({<Temperature={'>=35'}>} DateTimeTaken) - Max({<Temperature={'<=35'}>}DateTimeTaken) ,'h:mm' )

View solution in original post

4 Replies
swuehl
Champion III
Champion III

I guess it should be

=interval(Min({<Temperature={'>=35'}>} DateTimeTaken) - Max({<Temperature={'<=35'}>}DateTimeTaken) ,'h:mm' )

Not applicable

U can just use the max DateTimeTaken before it reached 35

=interval(max({<Temperature={'<=35'}>}DateTimeTaken),'h:mm' )

swuehl
Champion III
Champion III

Could you maybe post some sample lines of data and your requested result?

joeybird
Creator III
Creator III
Author

Hi

worked brill thank you x