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

Button to select date range

I have a field ENTER_DATE and I would like a button that select all dates more then 30 days old.

Every time I work with dates I feel as though its a format issue but I can't seem to get it to work.

I created a button, select in field...

     -field: ENTER_DATE

     -search in string: <=(date(today()-30))

1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

I see...

The mistake is in the field name.  Don't use "=" sign

=[Enter Date]

It should be simple

[Enter Date]

or even simpler

Enter Date

Next, doesn't look like a problem but safe to do, make sure that the format of the date in action is the same as in the field:

='<=' & date(today()-30, 'MM/DD/YYYY')

Regards,

Michael

View solution in original post

6 Replies
Anonymous
Not applicable
Author

It may be a format issue.  But first try this:

='<=' & date(today()-30)

Not applicable
Author

Thanks for trying but that didn't seem to work either....

Anonymous
Not applicable
Author

Works for me...  Can you upload an example?

Not applicable
Author

This is a scaled down version of what I am working on.  The dashboard has a multi date slider in it, however, our company is still fairly new to QlikView and we are facing some push back.  We are being told that the slider is not intuitive and they want a button... hence my question!

Thanks for your help

Anonymous
Not applicable
Author

I see...

The mistake is in the field name.  Don't use "=" sign

=[Enter Date]

It should be simple

[Enter Date]

or even simpler

Enter Date

Next, doesn't look like a problem but safe to do, make sure that the format of the date in action is the same as in the field:

='<=' & date(today()-30, 'MM/DD/YYYY')

Regards,

Michael

Not applicable
Author

Ahh Ha! I love simple solutions!

Thanks for taking the time to help me out!