Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
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.