Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
suhascool1
Contributor III
Contributor III

how to create new column as a day count between two date columns

Hi,

How to Create a new column as Count_Days between two date columns.

eg : 

Creation_Date Closed_Date Count_Days
02-15-2024 02-10-2024 5

 

Thanks

Suhas 

Labels (1)
2 Solutions

Accepted Solutions
Lisa_P
Employee
Employee

The Simplest way is to use the column name or Field name

eg Closed_Date - Creation_Date and label as Count_Days

 

 

View solution in original post

Lisa_P
Employee
Employee

If they are being loaded in the same table add another column in the load script like:

Load   .....,
    Creation_Date,
    Closed_Date,
    Closed_Date - Creation_Date as Count_Days,
    ...

View solution in original post

4 Replies
Lisa_P
Employee
Employee

The Simplest way is to use the column name or Field name

eg Closed_Date - Creation_Date and label as Count_Days

 

 

suhascool1
Contributor III
Contributor III
Author

Creation_Date column in one Table1 and Closed_Date Column in the another Table2.

so how to Create Count_Days Column in the script.

 

Lisa_P
Employee
Employee

If they are being loaded in the same table add another column in the load script like:

Load   .....,
    Creation_Date,
    Closed_Date,
    Closed_Date - Creation_Date as Count_Days,
    ...

suhascool1
Contributor III
Contributor III
Author

Thank you Lisa