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 / Teams and Table and Ye...
Power Apps
Answered

Teams and Table and Yes/No

(0) ShareShare
ReportReport
Posted on by 1,088

In teams I am creating a power app.  I have a built in table with a Yes/No column.

 

I am aware of all the various issues with SharePoint.

 

I have a gallery and in it I have a simple bit of logic that says if confirmed = ..., then show a checkmark otherwise show a cancel icon.

 

I have tried:

 

= true

= 1

= "Yes"

= Yes

 

But none work.

 

So I created a label and put the ThisItem.Confirmed as the text and it says Yes.

 

So, not sure why my if statement isn't working properly and gives me an incompatible type error?

 

I also tried wrapping Text(ThisItem.Confirmed) and tried all those same options and none work?

 

So anyone know anything else I can try?

 

Thanks,

Terry

Categories:
  • Verified answer
    v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @Mattw112IG ,

     

    Please don't compare it with true or false, etc., it is true or false by itself. If you compare it with true or false, the formula will have problems.

     

    For example:

    1\ This is my table in teams,

    v-xiaochen-msft_0-1619514477047.png

     

    2\ Add a gallery control and insert a label control.

    Set its Text property to:

    If(ThisItem.YesOrNo,1,2)

     

    3\ The result is as follows:

    v-xiaochen-msft_1-1619514534849.png

    v-xiaochen-msft_2-1619514556623.png

     

     

    Best Regards,
    Wearsky
    If my post helps, then please consider Accept it as the solution to help others. Thanks.

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 220 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 194 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 150

Last 30 days Overall leaderboard