Consider the following table residing in an on-premise SQL database called DateTable (pulled into powerapps via an on-premise gateway):
Name DateField
------- ---------------------------
Item1 2015-01-01 00:00:00
Item2 2017-01-01 00:00:00
When I try to filter this table in Powerapps using the following statement, nothing comes back.
Filter('[dbo].[DateTable]', DateField > DateValue("1/1/2016"))
To debug the issue, I created the following collection:
ClearCollect(DateCollection, {Name: "Item1", DateField: DateValue("1/1/2015")}, {Name: "Item2", DateField: DateValue("1/1/2017")})
The same filter expression applied to this collection works and correctly brings back the one row for 2017:
Filter(DateCollection, DateField > DateValue("1/1/2016"))
Any idea why I can't filter my SQL data source by date?
Thanks!