web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / UpdateIf updating all ...
Power Apps
Unanswered

UpdateIf updating all rows in a collection

(1) ShareShare
ReportReport
Posted on by 2
I have a collection used as a data source for a gallery, with two columns question num and visibility indicator. I’m updating this collection such that when the question number is between two numbers, it updates the visibility indicator to No. This logic is not working though. While debugging I set the UpdateIf condition to a specific question number = 13. It worked this time but updated all the rows in the collection. The code is on the OnSelect of a button. I also used ForAll but it doesn’t update anything at all. For example, if my current question is 3 and next question is 15, I want question 14 to hide in the gallery using its visibility indicator and hence I need to set it to No.
Categories:
I have the same question (0)
  • Suggested answer
    Michael E. Gernaey Profile Picture
    53,351 Super User 2025 Season 2 on at
    Hi
     
    Its not realistic to try to explain, when even in your explanation you share no code no anything.
     
    Its realistic to share your stuff so we can help you.
  • CA1105 Profile Picture
    545 Super User 2025 Season 2 on at
    Can you share what you have done so far and what you want to achieve? It might be easy to understand by looking at the code instead of just plain explaination.
  • Suggested answer
    timl Profile Picture
    36,383 Super User 2025 Season 2 on at
    Hi AppGenius,
     
    This is the basic code that you would use to make question 14 hidden.
     
    UpdateIf(
        YourCollection,
        'question num' >= 3 && 'question num' <= 15,
        { 'visibility indicator': false }
    )
     
    If you could give more details as to the formula that you've used, that would be helpful.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard