cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper II
Helper II

how to make IF function work in all items in gallery

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

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User
Super User

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

View solution in original post

2 REPLIES 2
Highlighted
Super User
Super User

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

View solution in original post

Highlighted
Helper II
Helper II

Re: how to make IF function work in all items in gallery

thank you so much it works very well 🙂 

 

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Find your favorite faces from the community presenting at the Power Platform Community Conference!

Watch Now

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (11,587)