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, These types cant be compared: optionsetvalue, text

(1) ShareShare
ReportReport
Posted on by 1,512

I am just getting into using the Dataverse and i have a table that has a choice column called expense type.

 

I want to have a field only show when the choice field is Travel-Day Trips,

 

I am using this code below which I thought would work,

If(DataCardValue4.Selected.Value = "Travel-Day Trips",true, false)

 but I am getting the error.

 

Dorinda_0-1638552476230.png

 

 Any suggestions on how to fix this?

Categories:
I have the same question (0)
  • Verified answer
    Nogueira1306 Profile Picture
    7,390 Super User 2024 Season 1 on at

    Try this:

    If(Text(DataCardValue4.Selected.Value) = "Travel-Day Trips",true, false)

     

    Nit sure if it will work, though..

     

    If you need additional help please tag me in your reply and please like my reply.
    If my reply provided you with a solution, pleased mark it as a solution ✔️!

    Best regards,
    Gonçalo Nogueira

    Check my LinkedIn!

    Check my User Group (pt-PT)!

    Last Post on Community

    My website!

  • Pstork1 Profile Picture
    68,707 Most Valuable Professional on at

    The problem is that the value of a choice column in Dataverse isn't actually the text that is displayed.  Option columns store their choices in a central location.  So you need to use a loopkup to get the value.  This article explains.

    Power Apps Guide - Dataverse - How to filter Dataverse choice columns - Power Apps Guide - Blog

  • Dorinda Profile Picture
    1,512 on at

    @Nogueira1306 Thank you that worked perfect

  • Dorinda Profile Picture
    1,512 on at

    @Pstork1 thank you that helps a lot!!

  • Community Power Platform Member Profile Picture
    on at

    Screenshot (378).png

     How to solve this error?

  • tsang Profile Picture
    9 on at

    You need to define your choice list in Dataverse. Example:  Filter(Reports, High Level = ListChoiceName.ChoiceName)

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 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard