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

Incompatible types for comparison. These types can't be compared: Record, Text

(1) ShareShare
ReportReport
Posted on by 2
I am trying to perform a very simple filter on a gallery. I am trying to filter the HJF_Team table based on the global variable which has been set (Open Season). 
 
Filter(HJF_Teams, TeamYear = OpenSeason)
 
I am getting the infamous error,
Incompatible types for comparison. These types can't be compared: Record, Text.
 
I have researched and researched this for hours, but have not be able to find a solution. 
Any help anyone can provide which be epic. I am new to PowerApps, so this definitely a learning process me. 
Categories:
I have the same question (0)
  • Suggested answer
    Michael E. Gernaey Profile Picture
    53,969 Moderator on at
    Hi,
     
    The issue is, you are comparing a Record (TeamYear) to a Text (OpenSeason)
     
    If you were to do this.
     
    TeamYear. <==== add the period, you will assuredly get a popup of things to pick from.
     
    That's because your TeamYear field is probably a LookUp to another table, aka making it a record.
     
    Trust me... go to your Table, and Take a Picture of your list of Columns and specifically TeamYear... it will be a lookup.
     
  • Suggested answer
    Pstork1 Profile Picture
    69,129 Most Valuable Professional on at
    The error is because one of the values you are comparing is an object, not a simple string.  It could be either the TeamYear or the OpenSeason.  To find out which add a period '.' after the value and see if IntelliSense offers you some property names in the dropdown. If it does that value is an Object not a string.  You need to select the string property from IntelliSense to have the comparison work.

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 530

#2
WarrenBelz Profile Picture

WarrenBelz 459 Most Valuable Professional

#3
Haque Profile Picture

Haque 314

Last 30 days Overall leaderboard