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

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Top Kudoed Authors
Users online (53,197)