Announcements
Is it possible to have a drop down box with the year 2021, 2022, 2023 etc where when the user selects the relevant year and the gallery will filter between a set date i'e 01/01/2023 - 31-12-2023 automatically?
Hi @Markswan20
Try this,
Filter( YourDataSource, Year(YourDateField) = Year(DropdownYear.Selected.Value) )
Thanks!
If my response has been helpful in resolving your issue, I kindly request that you consider clicking "Accept as solution" and "giving it a thumbs up" as a token of appreciation.
Try this formula, this is delegation free:
With({tt: Filter( AddColumns( YourDataSource,, "yrs", Year(YourDateField) ), yrs = Year(Dropdown1.Selected.Value) ) }, tt)
Hi @Markswan20,
Have you solved your problem?
I just add something to @Rajkumar_404
Remember to set your year dropdown with following formula:
["2021", "2022", "2023" ]
Then set your Gallery items with @Rajkumar_404 's formula.
Check it and see if it works.
Sorry for the delay, the code none delegable works perfectly thank you, i need to SORT the data with the newest 1st "fieldname" ('Log Date') where do i need to put this within the code to achieve this?
I've sorted it using the following for other users
With( { tt: Sort(Filter( AddColumns( LogDataALL, "yrs", Year('Log Date') ), yrs = Year(Dropdown4.Selected.Value),NewCreatedBy=varUN ),'Log Date',SortOrder.Descending) }, tt )
However i've just stumbled on another problem, when using this code i can't navigate to the selected records as it's not recognising the gallery, i use the delegable version and it's fine, any ideas
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our 2026 Super Users!
Congratulations to our 2025 community superstars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 542 Most Valuable Professional
Haque 206
Kalathiya 201 Super User 2026 Season 1