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 two single-colum...
Power Apps
Answered

Merge two single-column tables into one without "each record of the table is added as a separate record"

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi PA Community,

 

Is there a simple way to merge two tables into one line by line, i.e without "each record of the table is added as a separate record"? (the only thing in common is exactly the same number of rows)

Wish these tables had an internal index which I believe they don't, which people have asked for.

 

What I have:

Table1		Table2
------		------
A		1
B		2
C		3
...		...

What's needed:

Table3
------------------------
Column1		Column2
-------		-------
A		1
B		2
C		3
...		...

Sorry, if it's super simple, sometimes we all overcomplicate things 🙂

 

PS. I do have a workaround for my specific PowerApps Form but that doesn't answer my question.

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

    @Anonymous 

    Sure thing...here's a pretty basic formula for that:

     

     

    Clear(oneCollection);
    ForAll(Table1, 
    Collect(oneCollection,
    {Column1:Value,
    Column2:Last(FirstN(Table2, CountRows(oneCollection)+1)).Value
    }
    )
    )

     

    I hope that helps point you in the right direction.

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thanks!

    That's a workaround for a missing index column, isn't it? 🙂

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Anonymous 

    Yes you can.  However, ForAll's are expensive.  So performance can take a hit if overused.

    I use this indexing in places where there are small amounts of data to display - like a filtered Gallery.  And usually only to generate an index for even/odd numbering so that I can highlight alternate rows.  It gets tricky sometimes doing that, but...yep...it can be done.

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