web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Concat one collections...
Power Apps
Answered

Concat one collections column to a string then add it as a column to other collection with matching ID

(0) ShareShare
ReportReport
Posted on by 121

Hi all,

didn't think this would be a problem but here I am anyways.

 

I have two tables

 

Table1 Days

ID | Day

1  | Day 1

2  | Day 2

3  | Day 3

 

Table2 Emails Per Day

ID | Day ID | Email

1  |  1         | some email1

2  |  2         | some email 2

3  |  1         |some email 3

4  |  2         |some email 4

5  |  3         |some email 5

 

 

What I need to accomplish is to add a Column to Table 1 that displays the concatenated emails of Table2 based on the Matching ID

 

So the output would be this

 

ID | Day    | Emails

1  | Day 1 | some email1, some email3

2  | Day 2 | some email2, some email4

 

What I tried is this, but it does not give me desired output

ClearCollect(CollectionTable1,AddColumns(Table1,"Emails",Concat(Filter(Table2, DayID = ID),Emails,", ")))
 
I was fiddling around with a ForAll inside of this but to avail
 
Can anyone point me in the right direction?
 
 

 

Categories:
I have the same question (0)
  • timl Profile Picture
    36,774 Super User 2026 Season 1 on at

    Just to confirm, is it necessary in your output to retain the ID value? In this example, the ID for Day1 can be 1 or 3. Therefore, not returning the ID would make this task easier.

     

    ID | Day | Emails

    1 | Day 1 | some email1, some email3

    2 | Day 2 | some email2, some email4

  • drawser Profile Picture
    121 on at

    The only output that it needs is the concatenated emails from table two that corresponds with the already exisiting ID in table 1.

  • drawser Profile Picture
    121 on at

    The only output that it needs is the concatenated emails from table two that corresponds with the already exisiting ID in table 1.

  • Verified answer
    timl Profile Picture
    36,774 Super User 2026 Season 1 on at

    Hi @drawser 

    You would need to disambiguate the ID column using the syntax Table1[@ID].

     

    ClearCollect(CollectionTable1,
     AddColumns(Table1,"Emails",Concat(Filter(Table2, DayID = Table1[@ID]),Email,", "))
    )

     

    timl_0-1703241787397.png

     

  • drawser Profile Picture
    121 on at

    Ah yes, there we have it.

    I had forgotten about the disambiguate.

     

    Thanks for the reminder!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 505

#2
WarrenBelz Profile Picture

WarrenBelz 502 Most Valuable Professional

#3
Haque Profile Picture

Haque 324

Last 30 days Overall leaderboard