Hi!
I have two galleries on a screen with a small form. The form will be used in the field and the user wants to be able to see previous readings while in the field taking that week's readings. The first gallery works based on a dropdown selected location, this one works fine. For the second gallery, I'm trying to get it to show all locations but Filtered by the date selected in the date picker, 30 days before the day of the reading. The data source is currently a SharePoint list. The column in question is a Date/Time column.
This is what I have in the Items property of Gallery 2.
Filter(SharePointList,columnnameDate=DateAdd(DateValue1dropdown.SelectedDate,-30,Days))
The one issue I have had is that I renamed the Date column in SharePoint to SampleDate but the URL still contains Date as the column name. So I have tried 'SampleDate' and Date and neither works.
I've also tried this:
SortByColumns(Filter(SharePointList,column nameDate=DateAdd(DateValue1dropdown.SelectedDate,-30,Days)),"Date",Descending)
The gallery is just blank. If I try just the SortbyColumns, the gallery is populated but only with the most recent entries that is not dictated by the date in the dropdown.
I've tried solutions from the following post without success:
https://powerusers.microsoft.com/t5/Building-Power-Apps/Filter-gallery-by-date/m-p/668261#M213197
https://powerusers.microsoft.com/t5/Building-Power-Apps/Filter-gallery-of-Sharepoint-list-by-date/m-p/51020#M21272
I've watched this YouTube video from Reza Dorrani without success as well.
https://www.youtube.com/watch?v=eCMuXPI1Qok
It feels like such a simple solution so it's quite frustrating that I can't seem to find it.
Thank you!
Linda