Hi @PeKi72,
Should you already be using a gallery and you only want to filter on Geboortedatum after the button is pressed, you could try the following:
//OnSelect of you Button
Set(varFilterByDate, true)
//Items property of the Gallery
Filter(
'Employee Directory';
//Or the button hasn't been pressed and we display all records, or filter by date of birth
varFilterByDate = false || Geboortedatum = Today()
)
In this case make sure that Geboortedatum does not have 'Time' enabled in the column settings.
OnHidden of the screen would reset the variable to false:
//OnHidden
Set(varFilterByDate, true)
Alternatively you could use a Toggle to allow the user to switch between the Filter and full view:
Filter(
'Employee Directory';
//Will only filter by date of birth when the Toggle is on
ToggleName.Value || Geboortedatum = Today()
)
If this solves your question, would you be so kind as to accept it as a solution & give it a thumbs up.
Thanks!