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 / Issue: can't be compar...
Power Apps
Answered

Issue: can't be compared: Text, Record

(0) ShareShare
ReportReport
Posted on by 38

I am trying to build a dependent drop-down based on the other dropdown selection.

For example, my first selection will be "Game Title" drop-down and second one will be "Game Content" drop-down based on the "Game Title"

 

Game Title drop down (Items) = Distinct('Product Details',Game).Result

Game Content drop down (Items) = Filter('Product Details', Game.Value = DataCardValue1.Selected.Result)

 

But I am having issue as below:

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

 

Would anyone can help to resolve this issue?

2023-03-11 14_06_17-Window.png
Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    154,795 Most Valuable Professional on at

    Hi @caligame ,

    Do this on the first item

    Distinct(
     AddColumns(
     'Product Details',
     "GameValue",
     Game.Value
     ),
     GameValue
    ).Result

    and the second one should work - NOTE due to a recent change, you may have to use .Value instead of .Result in both places.

     

    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.

    MVP (Business Applications)   Visit my blog Practical Power Apps

  • caligame Profile Picture
    38 on at

    @WarrenBelzThanks for the comment! Columns already existed on Sharepoint List. I have connected those data to my power apps.

  • WarrenBelz Profile Picture
    154,795 Most Valuable Professional on at

    @caligame ,

    Sorry confused here - what exactly do you mean by that ? GameValue would not exist presently.

  • caligame Profile Picture
    38 on at

    @WarrenBelz 

    I am not trying to add GameValue on the existing sharepoint list but trying to use the existing column data from the Sharepoint list (which is Game Title and Content).

    For "Game Content", it should be filter out and able to select the available value only based on the "Game Title" selection (like cascading combo-box dropdown based on previous combo-box selection)

     

    I have set Game Title as this (Distinct('Product Details',Game).Result)

    and Game Content as this (Filter('Product Details', Game.Value = DataCardValue1.Selected.Result))

     

    caligame_0-1678640770540.png

     

    But having this error:

     

    caligame_1-1678640836554.png

     

     

  • WarrenBelz Profile Picture
    154,795 Most Valuable Professional on at

    @caligame ,

    The whole point is that Game is a Complex field type and it you want a Distinct value that is Text (to compare with second output, which is also Text), you need to use AddColumns in the Distinct Filter to produce a Text result.

     

    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.

    MVP (Business Applications)   Visit my blog Practical Power Apps

  • caligame Profile Picture
    38 on at

    @WarrenBelz 

    Thanks! Seems it resolve the issue on error but I don't see any available selection although data is available on the list.

     

    caligame_0-1678668630267.png

     

    "Game Title" is a choice column and "Game Content" is Text Column on the SharePoint List. Do you know why I don't see any value here?

  • caligame Profile Picture
    38 on at

    @WarrenBelz 
    I have updated receiving data column as a "Text" value from another Sharepoint list and looks like now I am able to see the value. But facing another issue..Do you have any idea on this issue?

     

    caligame_1-1678669875889.png

     

     

     

     

    caligame_3-1678669926435.png

     

     

  • WarrenBelz Profile Picture
    154,795 Most Valuable Professional on at

    @caligame ,

    What is the code that is producing that error ?

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 505

#2
WarrenBelz Profile Picture

WarrenBelz 502 Most Valuable Professional

#3
Haque Profile Picture

Haque 324

Last 30 days Overall leaderboard