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

Announcements

News and Announcements icon
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,779 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,779 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 101 Most Valuable Professional

#2
Haque Profile Picture

Haque 81

#3
VASANTH KUMAR BALMADI Profile Picture

VASANTH KUMAR BALMADI 70

Last 30 days Overall leaderboard