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 / Join two collections a...
Power Apps
Answered

Join two collections and keep rows in one collection if duplicated

(0) ShareShare
ReportReport
Posted on by 89

I have created two collections 1 and 2. Collection 1 has some people and scores which are all initialized with 0's. Collection 2 has some people and scores which are already well evaluated. So now I would like to join these two collections and keep values from Collection 2 if there are duplicate people. However, I tried so many ways and did not get good solution on it. Could anyone show some clues about it?

 

karolyuan_0-1656573740706.png

 

karolyuan_3-1656574059971.png

 

Categories:
  • MVP-Phipps Profile Picture
    3,526 Super User 2024 Season 1 on at

    Hi this post is very similar to this, please take a look: https://powerusers.microsoft.com/t5/Building-Power-Apps/Join-two-collections/td-p/395929

     

    Please Accept as Solution if it solves your question. Or just give it a Thumbs Up if it is helpful as can help others.

    LinkedIn: https://www.linkedin.com/in/charlie-phipps-%F0%9F%91%A8%E2%80%8D%F0%9F%92%BB-91338715b/
    Subscribe to my YouTube: https://www.youtube.com/channel/UChmFBGU1YKIU91sNMQ7buGg

  • EdViegas Profile Picture
    436 on at

    Try

    ClearCollect(
     ColMerge,
     Col1,
     Col2
    )
  • Verified answer
    Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @karolyuan 

    Collect(Collection3,Collection2,Filter(Collection1, !(ID in Collection2.ID))

  • karolyuan Profile Picture
    89 on at

    I have tried this solution, but it turns out everyone's score will be updated to the same. It doesn't update with the proper person.

    karolyuan_0-1656575935489.png

     

  • karolyuan Profile Picture
    89 on at

    This cannot remove duplicate people from collection 1.

  • MVP-Phipps Profile Picture
    3,526 Super User 2024 Season 1 on at

    Use Distinct Function on your collection.

  • karolyuan Profile Picture
    89 on at

    Awesome! Thank you so much for your quick and clean answer.😺

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 236 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 188 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 130

Last 30 days Overall leaderboard