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 / add column from relate...
Power Apps
Suggested Answer

add column from related many*many table

(0) ShareShare
ReportReport
Posted on by 336
I cant quite get this to work.. 

I have two tables that have a many to many relationship. I'm trying to clearcollect and create a string of names from the second table..

the second table 'Users' is the dataverse systemusers table. 

e.g.
 
ClearCollect(
    colMetricSummary,
    AddColumns(
        ELT_Metrics,

        AssignedUsers,

        Concat(ThisItem.Users, 'Full Name', ", ")
    )
)
 
Categories:
I have the same question (0)
  • Suggested answer
    11manish Profile Picture
    849 on at
    In Dataverse, you cannot add custom columns directly to a native Many-to-Many (N:N) relationship table because it is an internal "intersect" table managed by the system. This internal table only stores the unique IDs (GUIDs) needed to link records. 

    If you need to store additional data—such as a "Date Joined" or "Status"—associated with that relationship, you must use a Manual Many-to-Many relationship instead
     
    try to follow : 
     
  • Suggested answer
    Haque Profile Picture
    1,419 on at
    Hi @nick9one1,
     
    Let's evaluate the written code: 
    ClearCollect(
        colMetricSummary,
        AddColumns(
            ELT_Metrics,
            "AssignedUsers",
            Concat(ThisItem.Users, 'Full Name', ", ")
        )
    )
    
    Is ThisItem inside AddColumns  referring to the current record of ELT_Metrics? Instead, inside AddColumns, we should refer to the current record using the ThisRecord keyword (or just the implicit record context).
     
    Also, since Users is a many-to-many relationship (a table of related users), we need to access the related users for each record in ELT_Metrics properly.
     
     
    ClearCollect(
        colMetricSummary,
        AddColumns(
            ELT_Metrics,
            "AssignedUsers",
            Concat(
                ThisRecord.Users,
                'Full Name',
                ", "
            )
        )
    )
    
     
    Here, the key is to use ThisRecord inside AddColumns to refer to the current record of ELT_Metrics.
     
    NOTE: If delegation is a concern, test with smaller datasets or consider server-side filtering.
     

    I am sure some clues I tried to give. If these clues help to resolve the issue brought you by here, please don't forget to check the box Does this answer your question? At the same time, I am pretty sure you have liked the response!

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 530

#2
WarrenBelz Profile Picture

WarrenBelz 459 Most Valuable Professional

#3
Haque Profile Picture

Haque 314

Last 30 days Overall leaderboard