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

Announcements
AWS Degraded - You may experience Community slowness, timeouts, or trouble accessing: LATEST HERE
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to calculate days between two dates

Hello,

I'm new in QV and I'm trying to calculate the different between two dates in days. What I have is a single field called REPORT_DATE formatted as DD/MM/YYYY and I need to calculate the difference between the first and the last record in days.

I have try the following:

interval(max(REPORT_DATE))-(min(REPORT_DATE))

but it doesn't return the right values.

Could anybody help me?

1 Reply
sunny_talwar

To get days you can just subtract them without Interval:

Max(REPORT_DATE) - Min(REPORT_DATE)