cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
FoDelement
Continued Contributor
Continued Contributor

Merge two tables in a collection

Hello! I am trying to figure out how I can take two nested collections, into one collection. Below is what I currently have the data looking like. 

 

 

FoDelement_0-1621959075604.png

 

 

This is what I need it to look like. 

 

 

combined.jpg

 

The data lives in a SharePoint list, and I am using contact to get it into the collections. The data will always be the same amount of items, but there is no "Key".

FoDelement_1-1621960122722.png

 

 

The end goal, is to be able to put the data in a gallery like so.

 

FoDelement_0-1621960336902.png


Material + Size

I am open for suggestions. 🙂 

 

Thank you,

1 ACCEPTED SOLUTION

Accepted Solutions
FoDelement
Continued Contributor
Continued Contributor

Hello,

Yea, I just figured that out.  🙂

I came up with this solution.

Concatenate(
Split(
ThisItem.Material,
","
).Result,
" | Size: ",
Split(
ThisItem.Sizes,
","
).Result
)

FoDelement_0-1621962614753.png


This works perfect! 

View solution in original post

2 REPLIES 2
RandyHayes
Super User
Super User

@FoDelement 

So in general, you just need a formula for your Items property of the Gallery.  There is no need for collections to get to what you need.

What I am not seeing from the picture though is - does the amount of items in Sizes match the amount of items in Material, and are they assumed to match sequentially or is there some other matching that is involved from material to sizes?

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!
FoDelement
Continued Contributor
Continued Contributor

Hello,

Yea, I just figured that out.  🙂

I came up with this solution.

Concatenate(
Split(
ThisItem.Material,
","
).Result,
" | Size: ",
Split(
ThisItem.Sizes,
","
).Result
)

FoDelement_0-1621962614753.png


This works perfect! 

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (2,984)