Hi all, I think I found a bug, I'm using the below filter in a gallery to show matches for a specific day, which is selected in a datepicker
Filter('member-availability', Available_Day = Date(Year(WhosAvailableDatePicker.SelectedDate),Month(WhosAvailableDatePicker.SelectedDate),Day(WhosAvailableDatePicker.SelectedDate)))
I get the error
"The requested operation is invalid
Server response, The expression "Available_Day eq 2017-10-25" is not valid"
But if the change the sing to a <=, => or <> it works but I only want the sign day? does anyone know of a work around?
Solved! Go to Solution.
Hi AlanCampbell,
I can reproduce this issue on my side. I will try to report it.
When filter the gallery using date picker with = expression, it returns the same error message with you.
Then I figure out a workaround for this. Use Text function to convert the date to a string of text. I found that it works properly.
Filter(List2,Date=Text(DatePicker1.SelectedDate,DateTimeFormat.ShortDate))
Please try the workaround on your side. Hope it will work for you.
Best regards,
Mabel Mao
Hi AlanCampbell,
I can reproduce this issue on my side. I will try to report it.
When filter the gallery using date picker with = expression, it returns the same error message with you.
Then I figure out a workaround for this. Use Text function to convert the date to a string of text. I found that it works properly.
Filter(List2,Date=Text(DatePicker1.SelectedDate,DateTimeFormat.ShortDate))
Please try the workaround on your side. Hope it will work for you.
Best regards,
Mabel Mao
Hi @Anonymous
Another thing to consider is that queries to date columns in SP are not delegatable (nor is calculated columns in SP), so if you have to use SharePoint for the data, the other option would be to use Flow to fetch the data and return it to PowerApps. Flow can use ODATA queries to get to the correct data and then possibly manipulate or join the data with other services before returning it to PowerApps. I love this approach and it has come in extremely handy in the past. Some might say that using a flow for retrieving data might feel 'expensive' but it does allow for many different functional and security options going forward.
See below demo what can be achieved with this. Please see below and let us know if you have any questions or suggestions:
Twitter: @dawidvh
YouTube: https://www.youtube.com/user/dawidvanheerden
**If you found this reply helpful, please mark this as the answer to close the topic and make it easier to find for other people with similar questions.
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
User | Count |
---|---|
200 | |
47 | |
45 | |
45 | |
39 |
User | Count |
---|---|
279 | |
81 | |
81 | |
80 | |
67 |