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

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Problem with stopdate-startdate

Hi

I have a start and a stopdate, my goal is to get the number of days between these. I work find when it´s in the same month but anything else get wierd. The date is in form of yearmonthday.

Thanks!

4 Replies
Sokkorn
Master
Master

Hi hofstedt,

Try this

[Data]:

LOAD

     DATE(EndDate) - DATE(StartDate)     AS [NoDay],

....

Regards,

Sokkorn Cheav

jagan
Partner - Champion III
Partner - Champion III

TableName:

LOAD

     Date#(EndDate, 'YYYYMMDD') - Date#(StartDate, 'YYYYMMDD') AS DaysDiff

'

'

'

Hope this helps you.

Regards,

Jagan.

Not applicable
Author

Sorry, I´m a newbe. Were do I put this? Would really be greatful for a exampel...

jagan
Partner - Champion III
Partner - Champion III

Hi,

Add this Date#(EndDate, 'YYYYMMDD') - Date#(StartDate, 'YYYYMMDD') AS DaysDiff

as a new column in your script.

or attach qlikview file.

Regards,

Jagan.