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

Announcements
FLASH SALE: Save $500! Use code FLASH2026 at checkout until Feb 14th at 11:59PM ET. Register Now!
cancel
Showing results for 
Search instead for 
Did you mean: 
josephinetedesc
Creator III
Creator III

Time difference in an if statement

Hi I have these timestamps:

 

Apt DateArrivalApt TimeStartTime
Fri 02/06/201708:1408:1508:21

My formula for Arrival time - Aprt Time

interval(ArrivedTime - AptTime , 'hh:mm')

I have formatted the answer to General:

I want to show if the person arrived before the AptTime to show EARLY or LATE

if(interval(ArrivedTime - AptTime, 'mm')  >= 0, 'Early')  (Early works but all other values are blank)

Would it be possible to show if the ArrivedTime was within 10 mins either way of the AptTime???

thank you

Jo

Labels (1)
1 Solution

Accepted Solutions
tresB
Champion III
Champion III

May be like this?

if( (ArrivedTime - AptTime)  <= 10/24/60  and (AptTime - ArrivedTime )  <= 10/24/60, 'Withing range')

View solution in original post

1 Reply
tresB
Champion III
Champion III

May be like this?

if( (ArrivedTime - AptTime)  <= 10/24/60  and (AptTime - ArrivedTime )  <= 10/24/60, 'Withing range')