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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Date difference include last date

Hi,

How do I include last or start date while calculating the date difference.

I get 30 days using CheckOut-CheckIN formula. However, I want to include the start or end date so that I can get 31 NumberOfDays.

CheckINCheckOutNumberOfDays
10/31/201611/30/201630

What will be the right formula to do it? Should I just do (CheckOut-CheckIN)+1 ?? Little confused here.

Thanks.

Labels (1)
1 Solution

Accepted Solutions
swuehl
Champion III
Champion III

Just like that

(CheckOut-CheckIN)+1

View solution in original post

2 Replies
swuehl
Champion III
Champion III

Just like that

(CheckOut-CheckIN)+1

trdandamudi
Master II
Master II

Your formula is correct and also you can use as below:

=Interval(End_Date - Start_Date,'d')+1