web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / The requested operatio...
Power Apps
Answered

The requested operation is invalid. Server response failed, we cannot apply operator < to types Timezone and Number

(0) ShareShare
ReportReport
Posted on by

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

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    153,117 Most Valuable Professional on at

    @janineb ,

    What type of field is StatusDateInt ?

  • janineb Profile Picture
    on at

    Hi Warren, it is an Int field (converted from a "StatusDate" date field)

  • janineb Profile Picture
    on at

    Sorry, integer field

  • janineb Profile Picture
    on at

    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

  • Verified answer
    WarrenBelz Profile Picture
    153,117 Most Valuable Professional on at

    @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

  • janineb Profile Picture
    on at

    Thank you will try what you suggested

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.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 765 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard