web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Find distinct tools as...
Power Automate
Answered

Find distinct tools assigned to a contractor (based on unique values of their workers)

(0) ShareShare
ReportReport
Posted on by

I have a SharePoint list of Contractors (name and multi-select column called tools).
I also have a SharePoint list of Workers (name, lookup column to the contractors list, and multi-select column called tools). 

What I would like to do is create a workflow that will look at the Worker list, find all unique contractors, then find unique tools used by the workers assigned to the contractor. In the end, I would like to update the contractor's tools multi-select column with the distinct values in which their workers are assigned.

For example:
Contractor ABC has 3 workers. 
Worker A uses the following tools: hammer, saw, compressor, chalk line

Worker B uses the following tools: hammer

Worker C uses the following tools: pliers, compressor

 

Contractor XYZ has 2 workers.

Worker X uses the following tools: hammer, chalk line

Worker Y uses the following tools: saw, hammer

 

In the end, I would like to update the multi-select tools column in the Contractor list with distinct values from their workers. So,
Contractor ABC would have the following tools: hammer, saw, compressor, chalk line, pliers

Contractor XYZ would have the following tools: hammer, saw, chalk line 

 

To summarize, the Contractor list will show distinct values of all the tools in which their workers use. Folks will find it easier to look at the contractor list to find a summary of their worker's tools vs searching each and every worker assigned to a contractor and trying to find the unique values.

Any ideas?

Categories:
I have the same question (0)
  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @AnnetteM ,

     

    I have made a flow for your reference:

    vjefferni_0-1702631972649.png

    vjefferni_1-1702632109860.png

    vjefferni_2-1702632265494.png

    vjefferni_3-1702632462560.png

    vjefferni_4-1702632607641.png

     

    Best regards,

  • AnnetteM Profile Picture
    on at

    This solution is amazing!!! Thank you so, so very much! Worked like a charm!!!!

  • AnnetteM Profile Picture
    on at

    Shoot, this isn't working anymore. When I tested it, I had one worker per contractor. When I add multiple workers with multiple tools, it no longer rolls up the correct tools per contractor. Right before the update to the contractor, I did a compose of the variable array and there are some rogue tools - ones that belong to other contractors. Any ideas?

  • Verified answer
    AnnetteM Profile Picture
    on at

    I was able to get this concept working after receiving a comprehensive solution from @creativeopinion !!!!

    Solved: Re: Roll up distinct multi-select values from one ... - Power Platform Community (microsoft.com)

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 267 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 196

#3
Haque Profile Picture

Haque 182

Last 30 days Overall leaderboard