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
Dual Super User
Dual Super User

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
Dual Super User
Dual Super User

Hi @JR-BejeweledOne ,

Try:

 

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

 

 

Hope it helps !

Helpful resources

Announcements
Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Super User 2 - 2022 Congratulations

Welcome Super Users

The Super User program for 2022 - Season 2 has kicked off!

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Users online (2,928)