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 / 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
    Microsoft Employee 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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 483

#2
WarrenBelz Profile Picture

WarrenBelz 399 Most Valuable Professional

#3
11manish Profile Picture

11manish 327

Last 30 days Overall leaderboard