Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
grajmca_sgp123
Creator
Creator

Load the values where present date is between DATEFROM and DATETO fields

Hi Community,

I tried looking for this but could not find a solution

I have a requirement to load the values where present date is between DATEFROM and DATETO fields.

Could you please help me out , What script do I use and how do I do it. I tried using the Today() with interval match function but did not work

Below is the sample data.

Input Data:

grajmca_sgp123_2-1710256208736.png

Expected output:

grajmca_sgp123_3-1710257074388.png

Thanks

Rajesh G

 

Labels (1)
1 Solution

Accepted Solutions
LRuCelver
Partner - Creator III
Partner - Creator III

This should be a simple where statement. Depending on whether your DATEFROM and DATETO fields are formatted as dates or integers try one of the two:

Dates:

Where DATEFROM <= Today() and DATETO >= Today()

Integers:

Where Date#(DATEFROM, 'YYYYMMDD') <= Today() and Date#(DATETO , 'YYYYMMDD') >= Today()

View solution in original post

2 Replies
LRuCelver
Partner - Creator III
Partner - Creator III

This should be a simple where statement. Depending on whether your DATEFROM and DATETO fields are formatted as dates or integers try one of the two:

Dates:

Where DATEFROM <= Today() and DATETO >= Today()

Integers:

Where Date#(DATEFROM, 'YYYYMMDD') <= Today() and Date#(DATETO , 'YYYYMMDD') >= Today()
grajmca_sgp123
Creator
Creator
Author

Thank you it is working as expected.