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 / UpdateIf updating all ...
Power Apps
Suggested Answer

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,969 Moderator 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 Moderator 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,774 Super User 2026 Season 1 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

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 536

#2
WarrenBelz Profile Picture

WarrenBelz 426 Most Valuable Professional

#3
Haque Profile Picture

Haque 305

Last 30 days Overall leaderboard