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 / Merging records into a...
Power Apps
Answered

Merging records into a collection based on distinct value

(0) ShareShare
ReportReport
Posted on by 109

I have a SharePoint list with 5000+ records in the following sample structure

 

VisitDateBooking_RefUser_NameTeam
14/01/21DD111John SmithTeam1
15/01/21DD111John SmithTeam1
16/01/21DD111John SmithTeam1
21/02/21AF456Alice PeerTeam3
22/02/21AF456Alice PeerTeam3

 

Is it possible to create a collection, using distinct Booking_Ref, showing the first and last start date. So the collection would be :-

 

Start DateEnd DateBooking_RefUser_NameTeam 
14/01/2116/01/21DD111John SmithTeam1 
21/02/2122/02/21AF456Alice PeerTeam3 

 

Categories:
  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @bd528 

    Your main problem will be that you will not get a Distinct list of Booking_Ref values.  Distinct is not delegable, so it will only give you the distinct values of the first X records.  Where X is the record limit you have set in your app.

     

    I would suggest creating an ancillary SharePoint list that will contain all of the distinct Booking_Ref values.  Then you can use that list as the source and then lookup the remaining start and end dates from the primary list.

     

    I hope this is helpful for you.

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

#2
M Bilal Khan Profile Picture

M Bilal Khan 258

#3
Mohsin Ali Profile Picture

Mohsin Ali 231

Last 30 days Overall leaderboard