Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
joeybird
Creator III
Creator III

Adding up dates as a number in the data load editor

Hiya

I would like the following in my data load statement...dates to add up to a total number of days ...the in the "total number of days" new column

sum(if(DateOrderCompleted) - (DateOrderReceived) as [TotalNumberOfDays],

I cant seem to crack it.

please help

Kind regards

joeybird

1 Solution

Accepted Solutions
Anonymous
Not applicable

Remove "if":

sum(DateOrderCompleted - DateOrderReceived) as [TotalNumberOfDays],

View solution in original post

4 Replies
Anonymous
Not applicable

Remove "if":

sum(DateOrderCompleted - DateOrderReceived) as [TotalNumberOfDays],

MK_QSL
MVP
MVP

Interval(DateOrderCompleted - DateOrderReceived,'DD') as TotalNumberOfDays

nico_ilog
Partner - Creator II
Partner - Creator II

Hi Joanna,

Why not simply:

Date((DateOrderCompleted)) - Date((DateOrderReceived)) as TotalNumberOfDays


Lemme know.


Regards,

N

joeybird
Creator III
Creator III
Author

Hiya

awesome ta xxx

worked a treat

Kind Regards

Joeybird