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

Notifications

Announcements

Community site session details

Community site session details

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

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,383 Super User 2025 Season 2 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,383 Super User 2025 Season 2 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard