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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Removing duplicate ite...
Power Apps
Answered

Removing duplicate items in a gallery from a SharePoint list

(0) ShareShare
ReportReport
Posted on by

I have a gallery that is currently pulling through all items within the SharePoint list. I’m trying to put a formula in place to remove all 'Unique Role ID' duplicates from view within the gallery so you’d only be able to see each Job role once (as shown in the image attached). What would be the formula to remove duplicates meaning it's just the first record of each unique role ID which appears once within the gallery? I’ve tried having a play around using the distinct and add columns formula but neither seems to work.

 

Data source name: Post Interview Feedback
Gallery name: Interview Feedback Gallery 01
The column which I want individual items from: 'Unique Row ID'.Value (This is a Sharepoint lookup column so I’ve been using .Value on the end for the value to pull through)

 

Any help would be massively appreciated. If you need any more information, let me know.

 

CamArmstrong_0-1644921746702.png

 

Categories:
I have the same question (0)
  • soundharya Profile Picture
    249 on at

    Use Distinct(Tablename, columnname) 

  • Community Power Platform Member Profile Picture
    on at

    Thanks @Soundharya appreciate it. The only issue is, I'm then unable to pull in any other columns within the gallery as shown below, any idea's, please?

     

    CamArmstrong_0-1644925296385.png

     

  • Verified answer
    v-LilyW-msft Profile Picture
    on at

    Hi @Anonymous 

    Please try to use the following formula, Gallery Items:

    ForAll(
     Distinct(
     YourDataSource,
     ColumnName.Value
     ),
     LookUp(
     YourDataSource,
     ColumnName.Value= Result
     )
    )

     

    Hope the content above may help you.

    Best Regards

    If my reply helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • Community Power Platform Member Profile Picture
    on at

    That works perfectly, thank you @v-LilyW-msft, really appreciate it!

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard