Skip to main content
Announcements
Accelerate Your Success: Fuel your data and AI journey with the right services, delivered by our experts. Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
davyqliks
Specialist
Specialist

Button to select older than today

Hi,

In my model i have a field Expiry Date.

i wish to have a button that filters where the expiry dat is older than today.

 

I create the button

Select Values in Field

Fields Expiry date

Value 

=[Expiry date] < today()

this is not selecting the dates in the fields older than today.

 

This is odd as i have a background colour on the expiry dates using a similar expression, below.

=If([Expiry date] < today() ,RGB(204, 101, 118),
If([Expiry date] < today() +30 ,RGB(220, 204, 119),


))

 

can anyone inform why the button is not filtering as i hoped. thanks

DQ

Labels (4)
1 Solution

Accepted Solutions
QFabian
Specialist III
Specialist III

Hi, please try this :

1.- Create a variable using :

vToday = num(Today())

QFabian_0-1612374836846.png

2,. Select 'Select values matching search criteria' as Action option :

QFabian_2-1612375035234.png

 

3.- Use this in Value :

='< $(vToday)'

QFabian_1-1612374914361.png

 

It works!!!

 

QFabian

View solution in original post

5 Replies
QFabian
Specialist III
Specialist III

Hi, please try this :

1.- Create a variable using :

vToday = num(Today())

QFabian_0-1612374836846.png

2,. Select 'Select values matching search criteria' as Action option :

QFabian_2-1612375035234.png

 

3.- Use this in Value :

='< $(vToday)'

QFabian_1-1612374914361.png

 

It works!!!

 

QFabian
davyqliks
Specialist
Specialist
Author

Hi,

Thanks so much for your time.

I don't seem to have the same action options as you.

davyqliks_0-1612431197458.png

 

 

is there another option that will work?

Thanks

QFabian
Specialist III
Specialist III

hi @davyqliks , i'm working with newest version

QFabian_0-1612440985347.png

 

QFabian
davyqliks
Specialist
Specialist
Author

Thanks,

I will get updated today and try.

 

DQ

davyqliks
Specialist
Specialist
Author

Hi,

I cannot currently upgrade....IS there another way to get the achieved please

?

Thank you

DQ