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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

calculation of date difference

Dear all,

Which function I have to use to calculate no. of days of given dates?

Example:

Date1 - date2 = xx days

Pls suggest.

Labels (1)
4 Replies
Anonymous
Not applicable
Author

interval(date(DATE_CLOSED)- date(DATE_REPORTED),'d') as [No of Days]

robert_mika
MVP
MVP

Interval(Date1-Date2,'d')


Example

=Interval('1/1/2015'-'2/1/2014','d')

Answer: 334

avinashelite
MVP
MVP

use Interval() function, if you want net working days difference then use networkingdays() function.

mukesh24
Partner - Creator III
Partner - Creator III

Use Interval() to calculate day difference or convert date into number & simply subtracts 2 dates