Announcements
Im really new to powerapps. I have a Gallery populated by a sharepoint list. This sharepoint list has a single line text column named Day and another column which is a Date and time column. I added a DatePicker control and on the OnChange property of it I need for it to filter the records on the sharepoint list so if the selected date in the DatePicker is for example a Monday it would show me only the records with Monday in the Day column. Is that even possible?
It is! Try changing the Items of your gallery to something like:
Filter( *YourSPList*, Text(DateTimePicker.SelectedDate, "dddd") = Day )
Hope this helps!
Thanks! I added that code to the Items property code of the gallery but I think the problem is on the OnChange property of the Datepicker as it's still not filtering anything. Im using: Filter(MySPList, Text(Day) = Text(Weekday(DatePicker1.Value), "[$-en-US]dddd")) Im completely lost here
Add this to the Items/Datasource property of your gallery, not the OnChange of your DatePicker.
Filter isn't a function which inherently changes data - rather it returns a unique table based off of the data provided in it. As such, it won't change an existing collection/list by itself, it needs to be placed inside another function or property.
Try thisFilter( MySPList, Text(Weekday(DateColumn), "[$-en-US]dddd") = Text(Weekday(DatePicker1.SelectedDate), "[$-en-US]dddd") )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.
Thanks for your answer! It doesnt give me any errors (except for a delegation warning) but it is still not filtering, I mean I dont see any results in the gallery. Am I doing something wrong?
Disregard my first response! It is working perfectly! Thank you so much!
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.
Jump in, show your community spirit, and win prizes!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Valantis 404
timl 344 Super User 2026 Season 1
WarrenBelz 320 Most Valuable Professional