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
Unanswered

Days Old Column

(0) ShareShare
ReportReport
Posted on by 1,265

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

 

Categories:
I have the same question (0)
  • David_MA Profile Picture
    12,908 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

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 Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 462 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard