cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
JR-BejeweledOne
Super User
Super User

Concat with Groupby

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



If you like this post, give it a Thumbs up. If it answered your question, Mark it as a Solution to enable other users find it.
1 ACCEPTED SOLUTION

Accepted Solutions
RandyHayes
Super User III
Super User III

@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.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

View solution in original post

2 REPLIES 2
RandyHayes
Super User III
Super User III

@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.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

View solution in original post

JR-BejeweledOne
Super User
Super User

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



If you like this post, give it a Thumbs up. If it answered your question, Mark it as a Solution to enable other users find it.

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (2,072)