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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

To get the In between values between two dates

Hi all,

I need a help regarding , i have a 'Date' field for that i need to find out the dates which are in between two particular dates let say "1 may 2012" to "31 aug 2013" as a separate filed how it can be achieved. Please help me on the same.

Thanks in advance.

1 Solution

Accepted Solutions
MayilVahanan

HI

Try in script

If(Floor(Date) >= Num(MakeDate(2012,05,01)) and Floor(Date) <= Num(MakeDate(2013,08,31)), Date ,NULL()) AS NewDate

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

View solution in original post

5 Replies
sujeetsingh
Master III
Master III

Why dont you directly derive a field

as :

If(Date>01/05/2012 and Date<31/08/2013 ,Date ,NULL()) as NewDate

Not applicable
Author

I tried that, but its not working..

saumyashah90
Specialist
Specialist

only({<Date={'>$(SartDate) <$(EndDate)'}>} Date);

MayilVahanan

HI

Try in script

If(Floor(Date) >= Num(MakeDate(2012,05,01)) and Floor(Date) <= Num(MakeDate(2013,08,31)), Date ,NULL()) AS NewDate

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

Hello,

You can try this :

If(Date*1>= MakeDate(2012,05,01)*1 and Date*1 <= MakeDate(2013,08,31)*1, Date ,NULL()) as NewDate