Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
ashmitp869
Creator II
Creator II

Need help in subtraction two date fields

Hi there,

I have two date fields like below date format. I want to get the Date diffrence in hh:mm.

 

 

ashmitp869_0-1687841603841.png

 

I have used this :

interval([Client Departure DateTime]-[Client Arrival DateTime], 'hh:mm')

 

But not getting results. Please kindly assist.

Labels (1)
1 Reply
Lisa_P
Employee
Employee

Your dates don't seem to be detected as dates when loaded, they are loaded as strings, based on the left alignment of the field in the chart. So subtraction is not an option for text strings. You need to apply date# function to the date in the load script.