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: 
draghici1109
Creator
Creator

Issue with field in date (YYYY.MM.DD) format

Hello community!

I struggle with the following issue: 

Having this table as an input:

draghici1109_1-1743771752459.png

 

I want to eliminate the third record, due to the fact that Between IntervalStart and IntervalEnd is a difference of one day. And yet this where clause does not work... why?

 

Final:
NoConcatenate
LOAD *

resident [FinalTable]
WHERE IntervalStart + 1 <> IntervalEnd
//WHERE Num#(date(IntervalStart,'YYYY.MM.DD')) +1 <> Num#(date(IntervalEnd,'YYYY.MM.DD'))
//WHERE date(IntervalStart,'YYYY.MM.DD') +1 <> date(IntervalEnd,'YYYY.MM.DD')
//WHERE Num#(IntervalStart) + 1 <> Num#(IntervalEnd)

;

Alexandru Draghici
BICC at Komm.ONE
Labels (2)
1 Solution

Accepted Solutions
marcus_sommer
MVP
MVP

Maybe this one:

WHERE date#(IntervalStart, 'YYYY.MM.DD') + 1 - date#(IntervalEnd, 'YYYY.MM.DD');

View solution in original post

2 Replies
marcus_sommer
MVP
MVP

Maybe this one:

WHERE date#(IntervalStart, 'YYYY.MM.DD') + 1 - date#(IntervalEnd, 'YYYY.MM.DD');

draghici1109
Creator
Creator
Author

it worked! Thank You! Danke schön!

Alexandru Draghici
BICC at Komm.ONE