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 / bad performance for up...
Power Apps
Answered

bad performance for updateIF

(0) ShareShare
ReportReport
Posted on by 38

hi ,

i tried to updated Excel Data with UpdateIF function , below is the code :

 

UpdateIf(Table1 ,SearchID_3.Text = ID ,{Suporter:"Yes"})

 

it took around 18 second to do the update and sometimes it will take more .

 

any suggestions how i can Improve that ?

Categories:
I have the same question (0)
  • Verified answer
    v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @rawadm,

     

    Could you please share a bit more about your app's configuration?

    How many records existed within your Table1 (data source)?

     

    The UpdateIf function would evaluate the condition for each record within your data source and modifies any record for which the result is true, so the amount of the records within your data source (Table1) would have an affect on the execution speed of this function.

     

    More details about the UpdateIf function, please check the following article:

    UpdateIf function

     

    In addition, you could also take a try with the Update function or the Patch function on your side, then check if the issue is solved on your side (I assume that you only want to update one record within your data source).

     

    Patch function:

    Patch(Table1,First(Filter(Table1,ID=SearchID_3.Text)),{Suporter:"Yes"})

     

    Update function:

    Update(
    Table1,
    First(Filter(Table1,ID=SearchID_3.Text)),
    {
    Column1:First(Filter(Table1,ID=SearchID_3.Text)).Column1,
    Column2:First(Filter(Table1,ID=SearchID_3.Text)).Column2,
    ...,
    Suporter:"Yes"
    }
    )

     

    More details about the Update function and Patch function in PowerApps, please check the following article:

    Update function, Patch function

     

     

    Best regards,

    Kris

     

  • rawadm Profile Picture
    38 on at

    hi , Thanks for you answer , i Managed , moved from excel to CDS , perfomance Imporved alot .

  • v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @rawadm,

     

    Have you solved your problem?

     

    If you have solved your problem, please go ahead and click “Accept as Solution” so that this thread will be marked for other users to easily identify.

     

    Best regards,

    Kris

  • rawadm Profile Picture
    38 on at

    hi ,

    Thanks for your answer !!

    i moved from Excel to CDS DB and the peformance Improved alot and used also Patch Function instead of Update if .

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 355 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 150 Super User 2026 Season 2

Last 30 days Overall leaderboard