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 / change field value in ...
Power Apps
Unanswered

change field value in multiple rows

(0) ShareShare
ReportReport
Posted on by 11

Hello,

 

I want to change a textfield of multiple datasets wich are filtered by two values. First I tried it with the UpdateIf statement but the filter of this statement is not performant (blue underlined) so that just the first 500 entries are editable. So I tried to set the sorting to descending but then I can't use the UpdateIF statement. The Patch statement wasn't a success at all too.

Need help please. Thanks.

Categories:
I have the same question (0)
  • Meneghino Profile Picture
    6,949 on at

    Hi @mandert

     

    What do you mean by 'multiple datasets'? Is it one data source with multiple rows?

     

    What is the back-end? (I.e. SP lists, SQL Server etc.)

     

    What do you mean by 'filtered by two values'? Are you filtering on two columns or filtering on one column for two values? In any case, what are the column types and the filter you are trying to apply?

  • mandert Profile Picture
    11 on at

    hi @Meneghino

     

    oh yeah sorry. Yes I mean one data source and I want to change the value of a field in multiple rows. I want to select the rows with a filter that has two criteria connected with an '&'. Looks like: Filter('Data Source'; Date = ThisItem.Date & Name = ThisItem.Name)

    In the beginning I had: UpdateIf('Data Source'; Date = ThisItem.Date & Name = ThisItem.Name; {Status = "Test"})

    Status is a textfield. This statement worked until we reached 500+ records.

    I tried then UpdateIf(Filter(SortByColums('Data Source';Date;SortOrder.Descending); Date = ThisItem.Date & Name = ThisItem.Name; {Status = "Test"})...but this did not work.

     

    We use Share Point lists.

  • Meneghino Profile Picture
    6,949 on at

    I understand that your list has more than 500 items, but are you also trying to update more than 500 item at one time?

    If not, then the solution should be simple.

  • mandert Profile Picture
    11 on at

    No I don't try to update more than 500 records.

    But I read that an inperformant filter (blue underlined) just seaches in the first 500 records.

    Thats why I tried it with the descending sorting.

  • Meneghino Profile Picture
    6,949 on at

    OK, I think this should work:

    UpdateIf(Filter('Data Source'; Date = ThisItem.Date && Name = ThisItem.Name); True; {Status = "Test"})

    You will still see the blue underlining, but you can ignore it if you are not trying to update more than 500 records at one time, even if the total number of records in your source is >500 records.

  • mandert Profile Picture
    11 on at

    Hi @Meneghino,

     

    unfortunately it didn't work.

    I tried your formula AND a edit version:

    UpdateIf(Filter(SortByColumns('Data Source';"Date";SortOrder.Descending); Date = Today() && Name = ThisItem.Name );true;{Status: "Test"})

    But nothing want to work.

    I tried it once with a Patch statement but I'm to stupid to select multiple rows with it.

  • Meneghino Profile Picture
    6,949 on at

    Hi @mandert

    I think the latest PowerApps update broke the UpdateIf function.

    Please see here.

    Let's see if MS react

  • mandert Profile Picture
    11 on at

    @Meneghino wrote:

    Hi @mandert

    I think the latest PowerApps update broke the UpdateIf function.

    Please see here.

    Let's see if MS react


    Well... what a surprise. Smiley Indifferent

     

    Do you think there is a work around for this e.g. with PATCH? 

  • Meneghino Profile Picture
    6,949 on at

    Yes, you can probably use a Patch inside a ForAll loop. But you will probably need to disambiguate the ID column.

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 400 Most Valuable Professional

#2
11manish Profile Picture

11manish 141 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 109 Super User 2026 Season 2

Last 30 days Overall leaderboard