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 / Allocate a planner urg...
Power Automate
Answered

Allocate a planner urgency based on calculation between dates from sharepoint list

(0) ShareShare
ReportReport
Posted on by 56

Hi,

 

I am new to Power Automate (Power Apps in general). I am making a simple submission form app that feeds into a SharePoint list. This will then feed into Planner using Power Automate - I have got this nailed down and it sorts it between a new request or an edit request to the right buckets in Planner.


What I would like to do is get Power Automate to calculate the days between 'Created' and 'When do you need this by' on the SharePoint list. I have seen some formulas hanging about on here but I can't work them out or how they would relate to what I am doing, with little context. 

 

I know I need to have a compose step in before create new task, and then in the priority section of create new task, a formula. I just can't figure it out.

 

Is anyone able to help me please?

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

    Hi @chris_scott ,

     

    Do you want to calculate days between 'Created' and 'When do you need this by' for each item in SP list?

    Here is an expression for your reference.

    div(sub(ticks('2024-04-3'),ticks('2024-04-01')),864000000000)

     

    Best regards,

    Rimmon

  • chris_scott Profile Picture
    56 on at

    Yes I do. Would I replace the dates in the ' ' with a reference to the SharePoint column? I am outstandingly new to this so please treat me as stupid. What is the number long 8 number for?

     

    The resulting number, I would like power automate to then set the priority under create task, based on this number. e.g if it is 5 days I would like it to set the priority to urgent. I know that planner uses numbers to set priority.

  • v-mengmli-msft Profile Picture
    Microsoft Employee on at

    Hi @chris_scott ,

     

    Yeah, you can replace the date in the expression with column's dynamic content.

     

    If you calculate the number of days in 'Apply to each' of 'get items', you can put the calculation result in the condition to determine whether it is less than five days, and if so, then set the relevant task to urgent.

     

    Best regards,

    Rimmon

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 Automate

#1
David_MA Profile Picture

David_MA 77 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 68

#3
Expiscornovus Profile Picture

Expiscornovus 56 Most Valuable Professional

Last 30 days Overall leaderboard