Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Folarin
Contributor II
Contributor II

Calculating the number of Days between two dates

Hi

 

I need to calculate the Total number of days tasks have been open.

I have these 2 columns:

Date Created
Resolution Date

any help would be appreciated

 

3 Solutions

Accepted Solutions
Anil_Babu_Samineni

Perhaps this?

Interval([Date Created]-[Resolution Date], 'DD')

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful

View solution in original post

JordyWegman
Partner - Master
Partner - Master

Hi Folarin,

Use the following formula:

[Resolution Date] - [Date Created] 

If that doesn't work try:

floor([Resolution Date]​) - Floor([Date Created])

 

Jordy

Climber

Work smarter, not harder

View solution in original post

Anil_Babu_Samineni

@Folarin Could be format issue with your rows.

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful

View solution in original post

5 Replies
Anil_Babu_Samineni

Perhaps this?

Interval([Date Created]-[Resolution Date], 'DD')

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
JordyWegman
Partner - Master
Partner - Master

Hi Folarin,

Use the following formula:

[Resolution Date] - [Date Created] 

If that doesn't work try:

floor([Resolution Date]​) - Floor([Date Created])

 

Jordy

Climber

Work smarter, not harder
Folarin
Contributor II
Contributor II
Author

For some reason none of them are working.

what is the DD at the end of your expression?

JordyWegman
Partner - Master
Partner - Master

Hi Folarin,

What is the content of your fields? Can you show that?

'DD' stands for days so it would calculate the amount of days in the interval. This could also be 'MM' in Months.

Jordy

Climber

Work smarter, not harder
Anil_Babu_Samineni

@Folarin Could be format issue with your rows.

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful