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 Apps
Unanswered

Filter Gallery

(0) ShareShare
ReportReport
Posted on by 245

Hi,


I’m looking to filter the items listed in a gallery based on a column in a SharePoint list.

 

Problem being, there are duplications in the column and I only want to display the first item found.

 

I’ve tried looking at Distinct but I can’t seem to figure this one out.

 

Thanks for any help!

Categories:
I have the same question (0)
  • zmansuri Profile Picture
    6,048 Super User 2024 Season 1 on at

    Use the First function on List

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

    @MiniMe_83 Use the Lookup function. This is delegable whereas the First function is not.

  • MiniMe_83 Profile Picture
    245 on at

    Hi @zmansuri ,

     

    Thanks for the quick response, unless I’m mistaken though, I’m not looking for the first item in the SP list, I’m after all the items in the list but not to include any items where the value in the column is duplicated. 

    Hopefully that makes more sense.

     

    Thanks again

  • CU-18081211-6 Profile Picture
    9,272 Moderator on at

    @MiniMe_83 ,

    Use this formula on gallery items property:

     

    ForAll(
     Distinct(
     YourList,
     Column
     ) As distinctByColumn,
     Last(
     Filter(
     Sort(
     YourList,
     ID,
     Descending
     ),
     Column = distinctByColumn.Result
     )
     )
    )

     

     Hope it helps !

  • MiniMe_83 Profile Picture
    245 on at

    Spot on! Thanks @gabibalaban 

  • MiniMe_83 Profile Picture
    245 on at

    @gabibalaban - Thanks again, quick query, my gallery is now displaying the correct items but there are now blank spaces where the items which don't meet criteria would have been, its like they've been hidden rather than removed......

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 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard