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 / Create rollup-like col...
Power Apps
Answered

Create rollup-like column as concatenation of string fields from related table

(0) ShareShare
ReportReport
Posted on by

Hi! I need to create a new column by concatenating a string field from a related table.

 

For example, let's suppose I have a table "Foo", with the primary column "Name" and an "N:1" relationship with "Contact". What I would like to do is something like this:

 

Contact

FullNameRollup-like Column from Foo
JohnA, B, C

 

Foo

NameFullName (Contact)
AJohn
BJohn
CJohn

 

In SQL, it would be something like this:

 

 

select [C].[ContactId], string_agg([F].[Name], N', ') as [Rollup-like Column from Foo]
from [Contact] as [C]
 left join [Foo] as [F]
 on [C].[ContactId] = [F].[ContactId]
group by [C].[ContactId];

 

 

 

How can I achieve this? Although it will be used in a model-driven app, I strongly prefer a backend solution, so my logic stays the same, no matter how I consume the data.

Kind regards,

Davide

I have the same question (0)
  • AbdulWahab Profile Picture
    517 on at

    Hi dadepretto,

     

    You can use below two encapsulate your logic

    1) power automate

    2) workflow + workflow extension

    3) Plugin

     

    Let me know if I can provide you with more details.

     

    Thanks

    Regards,

     

    Abdul Wahab
    Power Platform/Customer Engagement Developer/Lead/Solution Architecture/Project Manager
    Direct/WhatsApp:+923323281237
    E-mail: abdulwahabubit@outlook.com
    Skype: abdul.wahabubit

  • Community Power Platform Member Profile Picture
    on at

    Thanks AbdulWahab!

    What are the pro/cons of the three solutions? As far as I can understand, the Plugin (3) solution is a frontend one, right?

    I've created a couple of real-time workflows to concatenate fields in another field (es. LastName + " " + FirstName as FullName), but I have no idea on how to extend this to related columns. Any documentation reference on this?

    Thanks for your time,
    Davide

  • Verified answer
    AbdulWahab Profile Picture
    517 on at

    Here you are

    1. Power Automate
    2. Workflow + Workflow extensions
    3. Plugins. It is not a front end solution

    Let me know if I can provide you with more details.

     

    Thanks,

    Abdul

  • AbdulWahab Profile Picture
    517 on at

    Hi dadepretto,

     

    Do you need anything more?

     

    Thanks

    Regards,

    Abdul

  • Community Power Platform Member Profile Picture
    on at

    Hi Abdul,

     

    sorry for my late reply. I was trying to learn more about the topics you referenced to make an informed decision and post it here for others to see.

     

    From what I discovered, I would say:

     

    - Power Automate (Flows) is the preferred "modern" way, but it works only in async mode.

    - You should choose Workflows + Extensions if you need your flow to run in real-time. Async workflows are being replaced by Power Automate Flows.

    - Plugins involve .NET code and can provide higher performance, at the expense of having to maintain such code.

     

    For my situation, I'll have just a few related records per entity, and I don't need any real-time guarantee, so I'll think I'll try first with Power Automate Flows.

     

    Thank you very much for your support!

    Kind regards,

    Davide

  • Roo88 Profile Picture
    18 on at

    I would love to see a Power Automate solution to this.

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 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard