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 / 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:
I have the same question (0)
  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    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

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard