web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

Days Old Column

(0) ShareShare
ReportReport
Posted on by 1,252

I have added a Flow to calculate a column in my SP List for DaysOld.  On a daily basis I would like to perform "sub(utcNow(),'Created')".  Based on this, I have a couple of questions...

 

  1. Is this the best way to accomplish?  I need the DaysOld to be a daily updated value if the Status is not = "Complete".
  2. Is a calculated column a better method or will it NOT update unless the item is modified?

Any assistance would be appreciated.

Thanks

 

I have the same question (0)
  • David_MA Profile Picture
    12,515 Super User 2025 Season 2 on at
    Re: Days Old Column

    If you use a calculated column, it will only recalculate when the item is updated, so you probably need Power Automate if you need it updated daily. You can use three compose actions to get the days:

    1. The first compose will calculate the date difference. It will return the value in days, hours, minutes, seconds (2.18:19:26.2006273).
    2. The second compose you will split this value on the period.
    3. The final compose will get the day value from the first split.

    These are the expressions in each Compose action:

    1. dateDifference(items('Apply_to_each')?['Created'], utcNow())
    2. split(outputs('Calculate_Days'),'.')
    3. outputs('Compose_Split')[0]
    David_MA_0-1665412224705.png

     

    There is probably another way you can do this, but this is what I've done.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 666 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 382 Moderator

#3
developerAJ Profile Picture

developerAJ 254

Last 30 days Overall leaderboard