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 / Filtering a data sourc...
Power Apps
Answered

Filtering a data source by unique identifier value

(0) ShareShare
ReportReport
Posted on by

Hello,

 

I am trying to filter values in a Sharepoint list, with the goal being to assemble a filtered table where entries with duplicate Titles are removed. 

 

So for example, if below is my data source:

IDTitleDescRef #
1AIssue A v197957
2BIssue B v113645
3CIssue C v116283
4AIssue A v246923
5CIssue C v282005
6DIssue D v186785
7AIssue A v391454
8AIssue A v391279
9DIssue D v215295
10EIssue E v140639

 

I would need for it to output the following:

IDTitleDescRef #
2BIssue B v113645
5CIssue C v282005
8AIssue A v391279
9DIssue D v215295
10EIssue E v140639

 

I would prefer not to hard code column names, if possible.

 

Thanks.

Categories:
  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @SeanWCain,

    Could you please tell me that the condition you want to filter the table based on?

    I could not get the key to why you want to filter like above?

    Do you want to keep the last one if there is a duplicate Title?

    If so, please try as follows.

    Add a button and set the OnSelect as below:

    ClearCollect(
     AssCol,
     Sort(
     DropColumns(
     AddColumns(
     GroupBy(
     Assemble,
     "Title",
     "NewTitle"
     ),
     "NewID",
     Last(NewTitle.ID).ID,
     "NewDesc",
     Last(NewTitle.Desc).Desc,
     "NewRef",
     Last(NewTitle.'Ref #').'Ref #'
     ),
     "NewTitle"
     ),
     NewID,
     Ascending
     )
    )

    Notice that 'Assemble' is my SP list name, please replace it with yours.

    2021-03-29-01.png

    Hope it could help you.

    Regards,

    Qi

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 345 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 225

#3
M Bilal Khan Profile Picture

M Bilal Khan 192

Last 30 days Overall leaderboard