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: 
Not applicable

Comparing dates

I can not make a comparison between two dates. The following snippet shows an example in detail:

"if(fine_anno=finemese,1, 0)"

where:

     fine_anno = 31/12/2016

     finemese = 31/12/2016

     -----------------------------------

     fine_anno = 31/12/2016

     finemese = 30/04/2016

By obtaining, for any comparison, always "0". Where am I doing wrong?

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

May be try this:

If(Floor(fine_anno) = Floor(finemese),1, 0)

View solution in original post

2 Replies
trdandamudi
Master II
Master II

Hope this is what you are looking for:

Comparing_Dates_18_Jan_2017_01.jpg

Check you date formats as below:

Comparing_Dates_18_Jan_2017_02.jpg

sunny_talwar
MVP
MVP

May be try this:

If(Floor(fine_anno) = Floor(finemese),1, 0)