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
Super User III
Super User III

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
Super User III
Super User III

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

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Tech Marathon

Maratón de Soluciones de Negocio Microsoft

Una semana de contenido con +100 sesiones educativas, consultorios, +10 workshops Premium, Hackaton, EXPO, Networking Hall y mucho más!

Top Solution Authors
Top Kudoed Authors
Users online (7,077)