Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

Concat with Groupby

(1) ShareShare
ReportReport
Posted on by 5,836 Super User 2025 Season 1

I have this setup in a gallery which provides the result in the image.

 

ClearCollect(
RequestIndex,
DropColumns(
AddColumns(

GroupBy(

Filter(AllRequests, RequestStatus = "Submitted" And AuthorManager = varUser),
"RequestNumber", "Submitter","Result"),
"Employees",
Concat(Result, Title & Char(10))

),
"Result"
)

)

 

GroupBy.png

 

What I would like to do is to have the concat to return not only the title but a combination of the Title and Approver columns, looking something like this, but am not sure how to add the approver piece into the equation.  I tried a couple things and failed miserably  😬:

 

Hickok, Jane - Washington, George

Doe, John - Hancock, John

User, Jeremy - Gwinnett, Button

Categories:
  • JR-BejeweledOne Profile Picture
    5,836 Super User 2025 Season 1 on at
    Re: Concat with Groupby

    I thought I had tried that already, not sure what I did that didn't work, but this worked!   Thanks

  • Verified answer
    RandyHayes Profile Picture
    76,287 Super User 2024 Season 1 on at
    Re: Concat with Groupby

    @JR-BejeweledOne 

    Assuming that Approver is a person column in your list...consider the following formula:

    ClearCollect(
     RequestIndex,
     DropColumns(
     AddColumns(
     GroupBy(
     Filter(AllRequests, RequestStatus = "Submitted" && AuthorManager = varUser),
     "RequestNumber", 
     "Submitter",
     "Result"
     ),
     "Employees", Concat(Result, Title & Approver.DisplayName & Char(10))
     ),
     "Result"
     )
    )

     

    I hope this is helpful for you.

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,702 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,015 Most Valuable Professional

Leaderboard