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 Automate / totally lost trying to...
Power Automate
Answered

totally lost trying to calculate days using ticks get items with sharepoint list

(0) ShareShare
ReportReport
Posted on by 31

So I will try and describe what i need as best as possible.  I have a recurring flow that emails an excel report to the recipient every wednesday.  I have been asked to include in my excel table a column that calculates the number of days since the created date.  for example when an item is created how long in days, has it been open.  I have looked all over and have seen that ticks is probably the way to go, since diffdate isn't available, but i can't get anything to work.  I was thinking that something along the lines of this    div(sub(ticks(formatDateTime(utcNow(),'yyyy-MM-dd')),ticks(item()?['Date Created:'])),864000000000) but i need to apply it to every row in table, and don't know if there is a way to do this.  Here is my flow:  I have more to the flow just need to address days open.  thank you.Capture.JPG

Categories:
I have the same question (0)
  • Verified answer
    v-yamao-msft Profile Picture
    Microsoft Employee on at

    Hi @Lowkey ,

     

    Do you want to get items from the list then insert them into an Excel file. In addition, you would like to get the number of days between two days and insert it into the Days open column.

    I have made the following test for your reference.

    Before starting the flow, please format the Days open column as type Number and set Decimal places as 0 in the Excel.

    The flow is configured likes below. Input the following code in the Days open column:

    div(sub(ticks(formatDateTime(utcNow(),'yyyy-MM-dd')),ticks(item()?['Date'])),864000000000)

    Please take a try with it on your side.

    1.PNG

     

    Best regards,

    Mabel

     

  • Lowkey Profile Picture
    31 on at

    Thank you!

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 223

#2
David_MA Profile Picture

David_MA 210 Super User 2026 Season 1

#3
Haque Profile Picture

Haque 175

Last 30 days Overall leaderboard