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
User Groups Public Preview

Join us for our User Group Public Preview!

Power Apps User Groups are coming! Make sure you’re among the first to know when user groups go live for public preview.

Power Apps Community Call

Monthly Power Apps Community Call

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

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Top Solution Authors
Top Kudoed Authors
Users online (29,003)