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

ClearCollect with Distinct and Concat

I need to create a collection from another collection that has 3 columns, Approver, Approver Email and Employees.

 

Approver and Approver Email need to be distinct (1 instance of Approver along with their email address) and employees needs to be a concatted column of all the employee display names that belong to the manager.

 

I am not quite sure how to build the ClearCollect statement to accomplish this.

 

I have this much

 

ClearCollect(Managers, Distinct(RequestInnput, Approver))

 

Where do I go from here or is this even possible?



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
gabibalaban
Super User II
Super User II

Hi @JR-BejeweledOne ,

Try:

 

ClearCollect( 
         Managers,
         DropColumns(
               AddColumns(
                   GroupBy(RequestInput,"Approver","Approver Email","Result"),
                   "Employees",
                   Concat(Result,Employees&";")
               ),
               "Result"
)

 

 

Hope it helps !

View solution in original post

1 REPLY 1
gabibalaban
Super User II
Super User II

Hi @JR-BejeweledOne ,

Try:

 

ClearCollect( 
         Managers,
         DropColumns(
               AddColumns(
                   GroupBy(RequestInput,"Approver","Approver Email","Result"),
                   "Employees",
                   Concat(Result,Employees&";")
               ),
               "Result"
)

 

 

Hope it helps !

View solution in original post

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 Apps Community Call

Monthly Power Apps Community Call

Did you miss the call?? Check out the Power Apps Community Call here!

secondImage

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Top Solution Authors
Top Kudoed Authors
Users online (36,584)