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
Answered

How to filter duplicated IDs and take first record in Power Automate?

(0) ShareShare
ReportReport
Posted on by 15

Hi, I have a dataverse in Power Automate. The dataverse file has two important columns, the ID column and the date column.

 

The ID column has duplicates for each ID with different dates. I need the most recent record of each ID based on the date added. I need to sort by descending, "filter by duplicates", and take the first record. I am not sure how to approach this, since I am new learning power automate. I have already applied the sort by descending, but the rest I'm stuck on how to apply the logic. 

 

I will appreciate very much any help. Thank you! 

 

 

 

I have the same question (0)
  • AhmedSalih Profile Picture
    6,680 Moderator on at

    hi @marycarmenvv, there is another community forum for Power Automate you might also check for your issue:

    https://powerusers.microsoft.com/t5/Microsoft-Power-Automate/ct-p/MPACommunity

     

    Regards,
    Ahmed
    If my reply helped you, please give a 👍. And if it has solved your issue, please consider Accepting it as the Solution to help other members of the community find it more.

  • Verified answer
    v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @marycarmenvv ,

     

    I've made a test for your reference:

    1\My table

    vbofengmsft_0-1657180110670.png

    2\My flow

    vbofengmsft_1-1657180130303.png

    vbofengmsft_2-1657180139282.png

    1)body('Filter_array')[0]

     

    The deduplication result will be saved in the variable TheResult.

     

    Best Regards,

    Bof

     

  • marycarmenvv Profile Picture
    15 on at

    Thank you very much! 

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!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 549 Most Valuable Professional

#2
Kalathiya Profile Picture

Kalathiya 225 Super User 2026 Season 1

#3
Haque Profile Picture

Haque 224

Last 30 days Overall leaderboard