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 / Merge Duplicates and P...
Power Apps
Answered

Merge Duplicates and Patch all as one

(0) ShareShare
ReportReport
Posted on by 112

Hi Smart People,

 

My gallery is reading from a SharePoint list and the 1st column called "Title" has several duplicates. I do not want to see duplicate values in the Gallery but I also need to patch the selected and all the duplicates with the same data.

 

Gallery:

ForAll(Distinct(SharePointList1,Title),LookUp(SharePointList1,Title = Value))

 I managed to filter my Gallery to NOT show any duplicates, but when I select a single item and Patch,  it only Patches the 1st row in the ShhrePoint list and I need it to Patch all the Titles with the same data.

 

Button to Patch:

Patch(SharePointList1, Gallery1_1.Selected, {'Key Deliverables': true})

Any advice or guidance will be appreciated?

Categories:
I have the same question (0)
  • Verified answer
    v-jefferni Profile Picture
    on at

    Hi @Dinerz ,

     

    It's due to the Patch function, the second parameter defines which item to update. So, please try below formula:

    Button to Patch:

    UpdateIf(SharePointList1, Title = Gallery1_1.Selected.Title, {'Key Deliverables': true})

     

    Best regards,

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 342 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard