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 / how to make IF functio...
Power Apps
Answered

how to make IF function work in all items in gallery

(0) ShareShare
ReportReport
Posted on by

Hi All, I have a gallery with multiple questions and each question has a answer ( YES/NO ) when i try to use a IF function it works only on the first question in the gallery not all questions

( i want the text to be 1 if any of the answers is "NO" ) 

i use the formula in the picture below, Please support 

 

Capture.PNG

Categories:
I have the same question (0)
  • Verified answer
    mdevaney Profile Picture
    29,991 Moderator on at

    @MostafaGamal 

    Put this code in the Text property of the label.

    If(CountIf(Gallery1.AllItems, Toggle1.Value = false) > 0, 1)

     

    ---
    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."

  • MostafaGamal Profile Picture
    on at

    thank you so much it works very well 🙂 

     

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!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 542 Most Valuable Professional

#2
Haque Profile Picture

Haque 206

#3
Kalathiya Profile Picture

Kalathiya 201 Super User 2026 Season 1

Last 30 days Overall leaderboard