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

date filter

I have a variable taking date from user - vDate. I am using Input box to accept this value.Based on this date I need to filter data. My data should be based on following conditions.

prd_Id:
load distinct [PRDCT_ID] as ID,
resident Product
where $(vdate) between beg_dt and end_dt;

(this beg_dt and end_dt are the database fields)

Can anyone tell what would be the correct syntax.

Thanks,pooja

Labels (1)
1 Reply
vgutkovsky
Master II
Master II

where beg_dt <= $(vdate) and end_dt >= $(vdate)

You might also not need the $() expansion, depending on how you read the variable in. So if the above doesn't work, try this: where beg_dt <= vdate and end_dt >= vdate

Regards,