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 / True or False color
Power Apps
Answered

True or False color

(0) ShareShare
ReportReport
Posted on by 141

Hello,

 

In my Excel database I have a tab called AIRCRAFT and a column called Seen with TRUE or FALSE in it.

 

I would like to know the formula that TRUE turns green and False turns red.

 

I am a newbie and have surfed the forums but I can't get it to work.

 

I hope you have the formula for me and I have attached a screenshot

 

Best regards,
Rene

Schermafbeelding 2021-09-09 om 19.39.06.png
Categories:
I have the same question (0)
  • Verified answer
    Nogueira1306 Profile Picture
    7,390 Super User 2024 Season 1 on at

    Olay. You have that label on a gallery. Just write this on fill:

    If(ThisItem.Seen = true; GREEN; false)

     

    Simple as that

     

    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)!

  • Verified answer
    Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @Boelebroer 

    Go to the Template fill property of the gallery and put in

     

    If(ThisItem.Seen, Green,Red)

    If your Seen value is text, then you may need to have

    If(ThisItem.Seen="True",Green, Red)

     

  • Boelebroer Profile Picture
    141 on at

    Thanks guys, I got it working

  • Boelebroer Profile Picture
    141 on at

    Thanks guys, I got it working. 

     

    One more thing, when I checkmark the checkbox the background color stays red but I want it to change to green.

     

    I have have attached a screenshot

     

    Tnx, René

    Schermafbeelding 2021-09-12 om 13.29.58.png

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 392 Most Valuable Professional

#2
11manish Profile Picture

11manish 136 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 109 Super User 2026 Season 2

Last 30 days Overall leaderboard