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

Merge multiple single-column tables into one multi-column

(0) ShareShare
ReportReport
Posted on by 572

I cannot for the life of me figure this out. I'll be pasting data from each column of a table in an email into their own respective text boxes. I want to split all text boxes, and combine them together into a single collection. I have the split for each box working beautifully, however my attempt to collect them together results in nested collections. Is there a way to expand each nested table to become the whole column?

 

Or instead, is there a way to combine two one-column tables so each table is a column? All text boxes should have the same number of items. If they don't, I can figure that out ahead of time.

 

Here's my code that results in the nested collection. The Filter() and Len() is to omit the last empty item that exists when pasting from an excel or emailed table.

 

 

 

 

 

ClearCollect(
 colCustMat,
 {
 'Customer Material': Filter(
 Split(
 txtCustMatList,
 Char(10)
 ),
 Len(Result) > 0
 ),
 'Internal Material': Filter(
 Split(
 txtIntMatList,
 Char(10)
 ),
 Len(Result) > 0
 )
 }
)

 

 

 

 

 

 

I have this working beautifully in Excel and Visual Basic for Applications, but I'd like to transition that to PowerApps.

 

JasonWS_0-1652878757928.png

 

Categories:
I have the same question (0)
  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @JasonWS,

    Do you want to expand all the nested columns within your collection?

    Modify your formula as below:

    With(
     {
     'Customer Material':Filter(Split(txtCustMatList,Char(10)),Len(Result) > 0),
     'Internal Material': Filter(Split(txtIntMatList,Char(10)),Len(Result) > 0)
     },
     ForAll(
     Sequence(CountRows('Customer Material')),
     Collect(colCustMat,{
     'Customer Material':Last(FirstN('Customer Material',Value)).Result, 
     'Internal Material':Last(FirstN('Internal Material',Value)).Result
     }
     )
     )
    )

    vqiaqimsft_1-1653038433049.png

     

     

  • JasonZF Profile Picture
    572 on at

    I appreciate the reply. This looks like it would work beautifully! Thank 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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 429 Most Valuable Professional

#2
11manish Profile Picture

11manish 191 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 122 Super User 2026 Season 2

Last 30 days Overall leaderboard