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 / Patch one table on top...
Power Apps
Answered

Patch one table on top of another

(0) ShareShare
ReportReport
Posted on by 48

Tried my best to find a title, but not sure how to post it exactly... So...

I have a table 1

NameID
John1
George2
Jim3
Bill4

 

and I have another table 2

NameID
Chris1
Patric2
Francois3

 

I want to always keep the second table, and put on the beginning of the second table the first one and adjust the ID accordingly.

Preferably I would like to do that with collections..

The result I want is : 

John1
George2
Jim3
Bill4
Chris5
Patric6
Francois7

Hope you understood the needed result!

Thank you in advance 🙂 

Categories:
I have the same question (0)
  • eka24 Profile Picture
    20,923 on at

    @SmoothOperator 

    ClearCollect(JoinedTable,Table1,Table2)

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • SmoothOperator Profile Picture
    48 on at

    if both tables have different columns though? I believe that 

    ClearCollect(
     JoinedTable,
     Table1,Table2
    )

    does not work and merges them. They should be exactly the same.. 

    any thoughts?

  • eka24 Profile Picture
    20,923 on at

    Your table had same columns. Did it work? 

    If different column names we can use AddColumns

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

     

  • Verified answer
    eka24 Profile Picture
    20,923 on at

    Try this:

    ClearCollect(JoinedTable,Table1,RenameColumns(Table2,"Name2","Name","ID2","ID"));
    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.
  • SmoothOperator Profile Picture
    48 on at

    I did this but with a ShowColumns() way and managed to make them both the same column collections and then used the intitial way you proposed 

     

    Thank you!

  • eka24 Profile Picture
    20,923 on at

    That is fine.

    Thanks

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard