cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
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
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

Helper II
Helper II

Thank you very much @gabibalaban, worked perfectly. 

Helpful resources

Announcements
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

Top Solution Authors
Top Kudoed Authors
Users online (76,447)