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

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (2,180)