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 / How to filter duplicat...
Power Apps
Unanswered

How to filter duplicates out of a Dataverse table based on date

(0) ShareShare
ReportReport
Posted on by 364

Hi All, 

 

I have an app where I am trying to create a bill of material for parts that my company needs to rework. I have a table in Dataverse called "AUNA Parts Product Structures" that has each "Parent Part" (PARPRT_02) in a column, and then each "Component Part" (COMPRT_02) in an additional column. 

Aurora_0-1687378573357.png

I have loaded the Dataverse table into excel to get a better view. In the image above, the 2 rows with a red dot need to be filtered out inside my app because they are older than the part with the same COMPRT_02. I also filter out any rows with a QTYPER_02 value of 0. 

Aurora_1-1687378794355.png

Currently this is all I have been able to come up with. I do not believe I can use the distinct function because I need to keep all the records associated with each part, so I can then lookup the parts that go into the parts that have been filtered out. 

 

I hope this all makes sense. 

 

if anyone has any suggestions or ideas where I could start with this, I would greatly appreciate it. 

Categories:
I have the same question (0)
  • MissingLink Profile Picture
    236 on at

    Hi @Aurora 

    I would consider one of 2 things for this problem.

    Firstly - Are you able to add a column that indicates when a part has been superceeded? A simply T/F should work.

    Then when a newer part is added, update the old part to 'True' - Now in your gallery, show only parts where superceeded='False'

     

    The second option is to group your source data and include a max(EFFDTE02) in the grouping.

     

    Also - if you are using dates to filter, this article recomends that you add another field where the date is stored as text in 'yyyymmdd' format as dates are not delegable in some scenarios

    Solved: How to filter the data by Dates - Power Platform Community (microsoft.com)

     

  • Aurora Profile Picture
    364 on at

    @MissingLink I can try the second option and attempt to group by the max effective date. The data in this table comes in daily from our ERP system, so I am unable to add a column for each part that indicates if it has been superseded or not. 

     

    Thanks for the help

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
Vish WR Profile Picture

Vish WR 762

#2
11manish Profile Picture

11manish 640

#3
Valantis Profile Picture

Valantis 548

Last 30 days Overall leaderboard