Hello
I have a Gallery that filters the following from a SQL datasource (the problem occurs in the red highlight):
With(
{
wDate:
DateAdd(
Today(),
-14,
Days
)
},
SortByColumns(
Filter(
vw_ITChangeRequests,
Status = "Closed" &&
StatusDateInt < wDate
),
"StatusDateInt",
Descending
)
)
However, I get the error "The requested operation is invalid. Server response failed, we cannot apply operator < to types Timezone and Number". Any suggestions please?
Thank you
Thank you will try what you suggested
@janineb ,
It needs to be a Date field as what you had will simply not work - you are trying to compare a date with it. You may need to remove and reconnect your data source.
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Visit my blog Practical Power Apps
Maybe to provide a little more info .... I have now changed back to the Date/Time field (StatusDate) - instead of the StatusDateInt (Integer field) .... I think the error has to do with the time that is included in the date but I'm still very new to PowerApps and not sure how to fix this error
Sorry, integer field
Hi Warren, it is an Int field (converted from a "StatusDate" date field)
@janineb ,
What type of field is StatusDateInt ?
WarrenBelz
42
Most Valuable Professional
mmbr1606
41
Super User 2025 Season 1
MS.Ragavendar
36