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 / How to Patch Multiple ...
Power Apps
Answered

How to Patch Multiple Rows in an Excel Datasource

(0) ShareShare
ReportReport
Posted on by 9

Hello,

 

I'm pretty new to PowerApps, but I'm building an app for work and having trouble with something.  My app is using an Excel datasource.  It's a pretty simple and easy setup.  I have a table in the datasource, let's say Table1, and 3 columns, Complete, Task, and Owner.  In the PowerApps form, the user's have the ability to select Yes or No for Complete, Task is view only, and they can enter their name in the Owner field.  Once they fill this all out, they can print it.  Now I want them to be able to clear the Complete and Owner fields out after they're done, so it's all blank again, except for the Task field.  Here's what I have, but this only clears out the first row.  I need all of the rows cleared out in one shot.  My "Clear Form" button has this in the OnSelect function.

 

Patch(Table1,First(Search(Table1,"","Owner","Complete")),{Owner:"",Complete:" "})

 

What the above does is, blanks out the Owner and Complete fields in the first row.  But I need it to do it for all the rows.  Can't figure out how to do it.  I'm sure it's pretty simple.  I tried to remove the "First" statement, but that didn't fly.  Any help would be greatly appreciated!  Thanks!

Categories:
  • Verified answer
    ntwizz Profile Picture
    9 on at

    I think I figured it out. I used UpdateIf instead of Patch and that appears to work.  Just a takes a little longer to run than I would like, but it works.

     

    UpdateIf(Table,true,{Complete:" ",Owner:""})

     

    I knew it was easy!  Lol!

     

    Thanks all!

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 397 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 354

#3
WarrenBelz Profile Picture

WarrenBelz 232 Most Valuable Professional

Last 30 days Overall leaderboard