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 / Filter for Duplicate N...
Power Apps
Answered

Filter for Duplicate Names (as Text) in a gallery

(0) ShareShare
ReportReport
Posted on by 94

Hi All,

 

I'm really struggling to make this work despite having read so many other posts on the subject.

 

I have a SharePoint list "Screening Records" and the list has a column "Name" which is a free text column.

 

I need to filter a gallery to only show items that have the same name.  I've tried Groupby etc and it works, but (obviously) it groups them and I need to be able to see each individual record, but only where those records have duplicate names.

 

Many thanks in advance

 

 

 

 

Categories:
I have the same question (0)
  • Verified answer
    mmbr1606 Profile Picture
    14,615 Super User 2026 Season 1 on at

    hey @Paultys 

     

    as we do not have much details this is a pseudo version of the code:

    // Step 1: Create a collection of duplicate names
    ClearCollect(
     DuplicateNames,
     Filter(
     GroupBy('Screening Records', "Name", "Duplicates"),
     CountRows(Duplicates) > 1
     )
    )
    
    // Step 2: Filter the gallery to display items with duplicate names
    Filter(
     'Screening Records',
     Name in DuplicateNames.Name
    )
    

     

    You would need to modify to your needs.

     

    Let me know if my answer helped solving your issue.

    If it did please accept as solution and give it a thumbs up so we can help others in the community.



    Greetings

  • Paultys Profile Picture
    94 on at

    That's perfect, I didn't think about creating a collection. That's worked a treat. Thank you

  • mmbr1606 Profile Picture
    14,615 Super User 2026 Season 1 on at

    great that it works 😉

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 519 Most Valuable Professional

#2
11manish Profile Picture

11manish 489

#3
Haque Profile Picture

Haque 327

Last 30 days Overall leaderboard