cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Digital
Responsive Resident
Responsive Resident

Create new table from several columns in existing collection

I want to take several columns from a data source and put them in a new collection under a single column. For example the three items in column A, B, C would become three data items under a new column in the new collection.

 

colSourceCollection

           URL1                 URL2                     URL3

www.url-one.com | www.url-two.com | www.url-three.com

 

colNewCollection

 

URL

---------------

www.url-one.com

www.url-two.com

www.url-three.com

 

I've tried using GroupBy and AddColumns but can't get the result I'm looking for.

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
yashag2255
Dual Super User II
Dual Super User II

Hey @Digital 

 

Can you try to use the below expression:

Clear(colNewCollection);ForAll(colSourceCollection,Collect(colNewCollection,{Value:Url1},{Value:Url2},{Value:Url3}))

 

Hope this Helps!

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

3 REPLIES 3
EricLott
Super User
Super User

You'll use AddColumns() and then Concatenate() to create the string.
Digital
Responsive Resident
Responsive Resident

@EricLott ,

 

Thanks for the reply.

 

So I should use AddColumns to concatenate the contents of each URL column. How would I then built a collection from the contents of the added column? Split perhaps?

 

I'm surprised there isn't a simpler way of taking data from several columns and putting into a single column table/collection.

 

Cheers

yashag2255
Dual Super User II
Dual Super User II

Hey @Digital 

 

Can you try to use the below expression:

Clear(colNewCollection);ForAll(colSourceCollection,Collect(colNewCollection,{Value:Url1},{Value:Url2},{Value:Url3}))

 

Hope this Helps!

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Don't miss the call this month on June 16th - 8a PDT

Top Solution Authors
Top Kudoed Authors
Users online (44,907)