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

How to preselect dates when sheet is active?

Hi,

I have a problem regarding the preselection of dates when specific sheet is loaded. I am using QV11. I want that all the dates of today and all the consecutive days are selected of my listbox when I access this sheet.
I know that have to access 'Sheet properties' -> 'Add actions' -> 'Select in Field' -> 'Field' and 'Search String'

The specific field is 'date_valid_until'.

I have tried the following 'Search String':  ='>=' & Today()  but then all the dates that start in 2012 and all the following dates are selected. So I am almost there but not quite because it must start today and not from 01-01-2012

I also tried: ='>=' & Date(floor(Today()),'DD-MM-YYYY') but then nothing happens.

Can anybody help?

see attached file: 'activate_dates_sheet.qvw'

Kind regards,

Byron

Labels (1)
1 Solution

Accepted Solutions
Not applicable
Author

firstly change your date format in script from 'YYYY' to 'YYYY-MM-DD'

reload and send qvw again:P

View solution in original post

4 Replies
Not applicable
Author

send a qvw file please:)

Not applicable
Author

See attachment now.

Not applicable
Author

firstly change your date format in script from 'YYYY' to 'YYYY-MM-DD'

reload and send qvw again:P

Not applicable
Author

That was the problem all along. Thanks for pointing that out.