Skip to main content

Notifications

Power Apps - Building Power Apps
Answered

how to make IF function work in all items in gallery

(0) ShareShare
ReportReport
Posted on by 130

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:
  • MostafaGamal Profile Picture
    MostafaGamal 130 on at
    Re: how to make IF function work in all items in gallery

    thank you so much it works very well 🙂 

     

  • Verified answer
    mdevaney Profile Picture
    mdevaney 29,987 on at
    Re: how to make IF function work in all items in gallery

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

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,636

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,942

Leaderboard