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 / Joining two collections
Power Apps
Answered

Joining two collections

(0) ShareShare
ReportReport
Posted on by 38

I have two collections with exactly the same fields and I want to join them in one collection, how can I do that?

 

For example:

CollectionA:

ID

Value

1

Value01

2

Value02

3

Value03

4

Value04

5

Value05

 

CollectionB:

ID

Value

6

Value06

7

Value07

8

Value08

9

Value09

10

Value10

 

ResultCollection:

ID

Value

1

Value01

2

Value02

3

Value03

4

Value04

5

Value05

6

Value06

7

Value07

8

Value08

9

Value09

10

Value10

Categories:
  • BCLS776 Profile Picture
    8,994 Moderator on at

    Try:

    ForAll(CollectionB,
     Collect(CollectionA,
     {
     ID: ThisRecord.ID
     Value: ThisRecord.Value
     }
    );
  • Verified answer
    GarethPrisk Profile Picture
    2,828 on at

    If the source tables are schematically identical, you would only need to Collect each into a combined collection.

     

     

    Clear(ResultCollection);
    Collect(
     ResultCollection,
     CollectionA
    );
    Collect(
     ResultCollection,
     CollectionB
    );
    

     

     

    Friendly FYI that "join" typically means there is a common field and you are looking to create a new table which has elements of the source tables "joined" together. In your scenario, you're simply appending rows to the collection. You will want to clear it before performing the collection, to ensure you're starting fresh.

  • PincheMaldy Profile Picture
    38 on at

    Great, thanks for the solution, I was trying with different instructions and it was really simple.

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 271

#3
Mohsin Ali Profile Picture

Mohsin Ali 239

Last 30 days Overall leaderboard