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 / Incompatible types for...
Power Apps
Unanswered

Incompatible types for comparison Text vs Number

(0) ShareShare
ReportReport
Posted on by

Hi there,

 

I have a Sharepoint List called "Locations" which contains number column called "Node ID".  This is an ID for the row. It is not using SP default ID column.

I have another table that Appointment that has a lookup field to the Node ID of the Locations table.

I'm building the datasource for a gallery as below;

 

 

AddColumns(
'Locations',
"AppointmentStatus",
Filter(
'Appointments',
'Node ID'.Value = 'Locations'[@'Node ID']
)
)

 

 

It gives me a Warning of "Incompatible types for comparison. These types can't be compared: Text, Number.

 

How do I compare number to number here?

 

Thanks!

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

    Hi @swmk_stephen ,

    Firstly, you need to ask yourself why you are using a lookup column at all (I have not for years and this would be simple and Delegable - which this is not - with a number column), however you also need to add the field name from Appointments that is relevant here. The other problem when you use a lookup in SharePoint on a number column is that is presents as Text, so

    AddColumns(
     'Locations',
     "AppointmentStatus",
     LookUp(
     Appointments As aApp,
     Value(aApp.'Node ID'.Value) = 'Node ID'
     ).YourFieldName
    )

     

    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

     

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 739 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 268

Last 30 days Overall leaderboard