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 / If statement with an y...
Power Apps
Answered

If statement with an yes/no option set

(0) ShareShare
ReportReport
Posted on by 117

Hi everybody

I'm trying to create an if statement in an gallery which shows if ThisItem.Field is Yes or No. Field is an option set where it can be Yes or No. I want to return either "No" or "Yes" depending on what the Field is. 

 

I tried:

If(ThisItem.Field = "No", "No", "Yes")

but I get an error saying Incompatible type. We can't evaluate your formula because the values being compared in the formula aren't the same type. 

 

Can anybody help me with this problem?

 

Best regards

Eva

Categories:
I have the same question (0)
  • Vijay Tailor Profile Picture
    2,961 on at

    Hi,

    You can Use Like below .

    If(ThisItem.YesNoColumn,"Yes","No")

     

    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

    Please Vote for my idea if you feel, that will help you in the future or good to have in power app.
    https://powerusers.microsoft.com/t5/Power-Apps-Ideas/Ability-s-to-Select-Icon-from-UIFabric/idi-p/694921

    https://powerusers.microsoft.com/t5/Power-Apps-Ideas/Preview-Mode-for-All-the-Device-Like-Phone-Tablet-Vertical/idi-p/694891

  • evalindag Profile Picture
    117 on at

    Hi @VijayTailor 

     

    I don't have an column named YesNoColumn

    Unless I am misunderstanding your answer

    Could you explain it better for me? 

     

    Best regards

    Eva

  • Verified answer
    Vijay Tailor Profile Picture
    2,961 on at
    YesNoColumn is the Field name,

    The Same way you mentioned.

    If(ThisItem.Field,"Yes","No")

  • evalindag Profile Picture
    117 on at

    Ah yes sorry, I get it now!

    Thank you very much, this works 🙂 

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 490

#2
WarrenBelz Profile Picture

WarrenBelz 427 Most Valuable Professional

#3
Vish WR Profile Picture

Vish WR 381

Last 30 days Overall leaderboard