Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
wholelottared
Contributor III
Contributor III

Calculation to calculate the time duration (days) between two dates?

Hello all,

 

Say I have 2 basic dates (Date In, Date Out), what's an expression to calculate the duration of the two dates (preferably in days)

 

Load * Inline [
Date In,Date Out
02/03/2020,02/05/2020
02/03/2020,02/09/2020
02/03/2020,02/11/2020
02/03/2020,03/03/2020
];

 

THANKS!

1 Solution

Accepted Solutions
Taoufiq_Zarra

Maye be

Date([Date Out])-Date([Date In])

Taoufiq_ZARRA_0-1590524442558.png

 

Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉

View solution in original post

2 Replies
Taoufiq_Zarra

Maye be

Date([Date Out])-Date([Date In])

Taoufiq_ZARRA_0-1590524442558.png

 

Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉
Tanalex
Creator II
Creator II

Try this NUM(FLOOR([Date Out]) - FLOOR([Date In]),'#,##0')

You may want different formatting.