Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
shanemichelon
Partner - Creator II
Partner - Creator II

Date comparison confusion (Weekend)

Hi Community!

I am confused by dates again!

can anyone tell me why this is so:

DateConfusion1.png

DateConfusion2.png

As you can see I am comparing the minimum of the date field (27 july 2015) with a date calculation which gives a date that is the same.  But the if statement says they are not equal!

Please help.  Am I just going mad?

I've just worked it out!

Weekend returns a time element.  weekend is the last millisecond of the week.  So I needed a floor function to get just the date and ignore the time!

if(Min(Date)=floor(Weekend(today))-13

0 Replies