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 / Combine two columns fr...
Power Apps
Answered

Combine two columns from same list into one

(0) ShareShare
ReportReport
Posted on by 31

I have a table with two different columns, "Service" and "Configuration Item."

An Example:

ServiceConfiguration Item
1A
2B
3C
4D
5E

 

I would like to combine the two columns into one new column so it looks like this (there may be duplicates, which would need to be removed):

Service and CI
1
2
3
4
5
A
B
C
D

 

After some Googling, I can only find information on "merging columns," but the results are not what I need. For example:

Incorrect Result
1 A
2 B
3 C
4 D
5 E

 

** this post was copied from the PowerBi forum, but I have the exact same issue in PowerApps

Categories:
  • Verified answer
    WarrenBelz Profile Picture
    156,921 Most Valuable Professional on at

    Hi @dconnell ,

    You did not specify your data source, but try this format

    Ungroup(
     Table(
     {
     Data: 
     ShowColumns(
     RenameColumns(
     TableName,
     "Service",
     "Value"
     ),
     "Value"
     )
     },
     {
     Data: 
     ShowColumns(
     RenameColumns(
     TableName,
     "Configuration Item",
     "Value"
     ),
     "Value"
     )
     }
     ),
     "Data"
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

  • dconnell Profile Picture
    31 on at

    I managed to overcome this by using the ForAll and Collect functions

     

    Clear(Combined);
    ForAll(TheList,Collect(Combined,Item1));
    ForAll(TheList,Collect(Combined,Item2));
    ForAll(TheList,Collect(Combined,Item3));
    ForAll(TheList,Collect(Combined,Item4))

     

    Which gave me one column with everything combined into one

  • dconnell Profile Picture
    31 on at

    From what I can gather, you're making 2 tables, which both comprise of the original column now renamed to Value, and then UnGrouping these 2 tables, which becuase the layout is the same should combine into one.

     

    P.S. The table is within the Teams environment

  • WarrenBelz Profile Picture
    156,921 Most Valuable Professional on at

    @dconnell ,

    Yes - that is exactly what I am doing, however I do not work in Teams.

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

#2
WarrenBelz Profile Picture

WarrenBelz 207 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 169

Last 30 days Overall leaderboard