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: 
sai_12
Contributor III
Contributor III

MAPPING TABLE DATE COMPARISION

Hello everyone, 

I am trying to solve a problem for which i am using the following mapping code in load script

           [Map]:
         Mapping
         Load

         PrimaryKey,
         1 as Count

        from table_name
        (qvd)
         Where WildMatch(description,'CLIENT*','Work*')
         AND Date(Date_column,'DD/MM/YYYY')>YearStart(TODAY());

 

the field Date_Column is a datetime field, can some one help me to filter only those dates which is greater than yearstart of today that is 1/1/2023

Labels (3)
2 Replies
MayilVahanan
MVP
MVP

hi

Try with floor function

Mapping
         Load

         PrimaryKey,
         1 as Count

        from table_name
        (qvd)
         Where WildMatch(description,'CLIENT*','Work*')
         AND floor(Date_column)> Floor(YearStart(TODAY(1)));

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
BrunPierre
Partner - Master II
Partner - Master II

Try.

Date(Floor(Date_column), 'DD/MM/YYYY') > Date(YearStart(Today(0)), 'DD/MM/YYYY')