cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Ryan_B
Resolver I
Resolver I

Merge two columns with the same data type into one column

I have two lists that each have a column that is the same type of data. One list is for submissions and the other is for approved submissions. I have a gallery that shows the actual data and the submissions together, but without these being in the same column I can't sort them properly.

 

Example:

List 1 - Approved submissions AKA the actual data

AAA
BBB
CCC

 

List 2 - Submissions awaiting approval that will be added to the actual data once approved

DDD
EEE
FFF

 

Desired outcome:

AAA
BBB
CCC
DDD
EEE
FFF

 

How would I go about doing this?

1 ACCEPTED SOLUTION

Accepted Solutions
BCBuizer
Super User
Super User

Hi @Ryan_B ,

 

The below will work if both lists have the same column names and types:

ClearCollect(colTotal,List1);
Collect(colTotal, List2)

 If there's not a 100% match, you'll have to perform some manipulations.



Did you like my post? Please give it a thumbs up! Did I resolve your issue? Please click Accept as Solution to close the topic and so other members of the community can find solutions more easily.

View solution in original post

3 REPLIES 3
BCBuizer
Super User
Super User

Hi @Ryan_B ,

 

The below will work if both lists have the same column names and types:

ClearCollect(colTotal,List1);
Collect(colTotal, List2)

 If there's not a 100% match, you'll have to perform some manipulations.



Did you like my post? Please give it a thumbs up! Did I resolve your issue? Please click Accept as Solution to close the topic and so other members of the community can find solutions more easily.

@BCBuizer 

 

Wow, I didn't think it would be that simple.

 

Turns out the reason I wasn't able to do this was because I had imported the list from Excel and the columns were showing up as field_1, field_2, etc. I remade the lists from scratch and just copy-pasted the data into them and it worked like a charm.

 

Thank you!

jwan_gain
Helper II
Helper II

i have similar Problem, i hope can somebody help me: @BCBuizer 
i want to merge two rows in the dataverse Table, because they have same Company Name, so when x Company had updated his Records, usually it looks two rows with same company name, but i want it to show in same row with update Records.. 😞 
Screenshot 2022-08-08 at 14.14.24.png

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Power Apps Ideas

Changes to Ideas Coming

We are excited to announce a new way to share your ideas for Power Apps!

Top Solution Authors
Top Kudoed Authors
Users online (1,963)