cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ToFj
Helper II
Helper II

Concatenating to Columns within a collection

Hello Everyone, 

 

I have some excel data that I would like to concatenate and then populate a dropdown menu. I have been trying it with the following code, but my new column shows up empty. 

 

ClearCollect(Collection, Table1);
Collect(Collection,{NewColumn: Concatenate(Collection.ID," - ", Collection.Title)})

 

And when I try to populate the dropdown menu i get the following warning

 

error message powerapps.JPG

Do any of you have any tips? 

Would certainly be greatly appreciated. 

1 ACCEPTED SOLUTION

Accepted Solutions
gabibalaban
Super User II
Super User II

Hi @ToFj ,

Are you trying to add a new column to your collection ? If so, please use this formula:

 

ClearCollect(Collection,
             AddColumns(Table1,"NewColumn", ID & " - " &Title)
            )

 

Now the collection is ready to be used inside items dropdown.  Don't forget to set value property on the right menu.

  

Hope it helps!

View solution in original post

2 REPLIES 2
gabibalaban
Super User II
Super User II

Hi @ToFj ,

Are you trying to add a new column to your collection ? If so, please use this formula:

 

ClearCollect(Collection,
             AddColumns(Table1,"NewColumn", ID & " - " &Title)
            )

 

Now the collection is ready to be used inside items dropdown.  Don't forget to set value property on the right menu.

  

Hope it helps!

View solution in original post

ToFj
Helper II
Helper II

Thank you very much @gabibalaban, worked perfectly. 

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

PA Community Call

Power Apps Community Call

Next call is happening on April 21st at 8a PST.

MBAS Carousel

Sign up for our May 4th event!

May the fourth be with you, join us online!

secondImage

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Top Solution Authors
Top Kudoed Authors
Users online (62,386)