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. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too!

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. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too!

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

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Top Kudoed Authors
Users online (48,372)