Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

find the time value difference between the earliest and latest values in a set of child records

(0) ShareShare
ReportReport
Posted on by 14

I am keen not to use Rollup fields here to find the earliest value amongst the Start Time of child records then again to find the lastest value for End time amongst the same set of child records in order to find the elapsed time between these two.

I have tried and failed to use Flow but wonder if anyone can point me in the right direction.  I thought that FetsXML aggregation may help but I'm a user and configurer, not a programmer so a bit out of my depth here.

Can anyone give me an idea where to start and what to try please?

  • Suggested answer
    Leah Ju Profile Picture
    Leah Ju Microsoft Employee on at
    RE: find the time value difference between the earliest and latest values in a set of child records

    Hi Nettsales,

    You can retrieve most recent or oldest child records in the power automate.

    https://benitezhere.blogspot.com/2019/11/retrieving-most-recent-or-oldest-records-in-Power-Automate.html 

    On the List records action you can use the Order(asc/desc) by and column name of the date and then get Top 1 record. 

    For example: Get a list of Child records and order by the Created On Date in ascending order, and my retrieve query is only returning the top one record which would be the oldest date:

    Then calculate difference between two times:

    https://debajmecrm.com/how-to-calculate-difference-between-two-dates-in-power-automate/ 

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,187 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,966 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans