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 Apps / Create List from Dupli...
Power Apps
Unanswered

Create List from Duplicates

(0) ShareShare
ReportReport
Posted on by 46

Hello,

 

I am trying to identify duplicates between 2 different lists and generate i drop list populated by these duplicates.

Example

I have Sharepoint List A that has in one column : RED, BLUE, GREEN, ORANGE, YELLOW, PURPLE,

In Sharepoint List B, i have a column with: GREEN, ORANGE, BLACK, WHITE

I want the dropdown to show only the items that are dupicated between the 2 lists (GREEN, ORANGE).

 

Any Ideas how i can accomplish this?

Thanks

Categories:
I have the same question (0)
  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @4wordsback An example, Place this in the onSelect of a Button,

    ClearCollect(colColour1,{colour:"Red"},{colour:"Blue"},{colour:"Green"},{colour:"White"});
    ClearCollect(colColour2,{colour:"Red"},{colour:"Green"});
    Clear(colMatch);
    ForAll(colColour1, If(colour in colColour2.colour,Collect(colMatch,{matchFound:colour})))

    The results in colMatch will be,

    CNT_0-1622733559423.png

     

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @4wordsback 

    Consider the following formula:

    With({ItemsA: ["RED", "BLUE", "GREEN", "ORANGE", "YELLOW", "PURPLE"],
     ItemsB: ["GREEN", "ORANGE", "BLACK", "WHITE"]
     },
    
     Filter(ItemsA, Value in ItemsB.Value)
    
    )

     

    This will produce a Table with Two Value - ORANGE and GREEN

     

    I hope this is helpful for you.

  • Bilakanti Profile Picture
    1,226 on at

    @4wordsback 
    You can iterate through each list and compare each row from List A in rows of List B. If equals then store in in another collection. Below is the screenshot for your reference.,

    Bilakanti_0-1622733967384.png

     

     

  • 4wordsback Profile Picture
    46 on at

    That did it! Thanks CNT!

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @4wordsback  Go simple!  Your app design proficiency will increase tremendously!

  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @4wordsback Please remember to give a 👍 and accept the solution as it will help others in the future.

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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 329 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 179

Last 30 days Overall leaderboard