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 / Using Calculated Date ...
Power Automate
Answered

Using Calculated Date field to send an email reminder

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello,

 

I have SharePoint list with a calculated date field - "EquipEndDate" which is "EquipStartDate" plus x number of days which the users enters. I would like to send an email reminder two days before the EquipEndate exipres.

Looks like I can't filter the query using - Calculated field  i.e. EquipEndDate.

So i am trying to use the below condition but i am always getting the input as false and it emails all the entires. Can you please let me know how this can be done?

Capture.JPG

Categories:
I have the same question (0)
  • tom_riha Profile Picture
    10,187 Most Valuable Professional on at

    Hello @Anonymous ,

    you're using the 'EquipEndDate' in the 'Condition', isn't that the calculated column? I think you should use there the 'EquipStartDate' instead.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thanks @tom_riha. 'EquipStartdate' is entered by the users and based on the number of days/weeks/months/years selected the 'EquipEnddate' gets calculated. I can't use the EquipStart date because the user selection will be different in every case.

  • tom_riha Profile Picture
    10,187 Most Valuable Professional on at

    Hello @Anonymous ,

    so you've got the 'EquipStartdate' and then the users enters a number of days in some column and you add the days to the 'EquipEnddate'? If so, you could move the whole calculation into Power Automate. There's an expression addDays(...) to add a number of days to a date.

    addDays([dynamic content], number, 'yyyy-MM-dd')
    
    Notes:
    [dynamic content] is the EquipStartdate
    number is the number of days to add to the EquipStartdate
    'yyyy-MM-dd' is the format of the result date = you don't need the formatDateTime(...) expression, you can use just the addDays(...) instead
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    The problem is user selection can be x weeks/x months etc...then I will have a formula to evaluate each selection and then convert into number of days. Not sure if Flow supports multiple if conditions.

    This is my calculated EquipEndDate in List.

     

    =IF([Duration]="WEEK",[EquipStrDate]+(EquipDuration*7),IF([Duration]="DAY",(EquipDuration+[EquipStrDate]),IF([Duration]="MONTH",DATE(YEAR([EquipStrDate]),MONTH([EquipStrDate])+EquipDuration,DAY([EquipStrDate])),IF([Duration]="YEAR",DATE(YEAR([EquipStrDate])+EquipDuration,MONTH([EquipStrDate]),DAY([EquipStrDate]))))))

  • Verified answer
    tom_riha Profile Picture
    10,187 Most Valuable Professional on at

    Hello @Anonymous ,

    that's a very nice calculated column. 🙂 Do you need the number of days or do you need just the result date?

    Looking at the calculation I'd split it into multiple calculations in the flow depending on the [Duration] and store the calculated value in a variable (to use later in the condition). That means a 'Switch' action based on the [Duration] column, branches for: WEEK, DAY, MONTH, YEAR. In each of the branches calculate the 'EquipEndDate' with the expression addToTime(...) reference to that expression.

    addToTime([EquipStrDate],[numberToAdd],'[timeUnit]','dateFormat')
    
    example to add 1 week to a date stored in variable 'ExtendedDate':
    addToTime(variables('ExtendedDate'),1,'Week','yyyy-MM-dd')

     

    image.png

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thank you, Tom_Riha, will try it out

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 262 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 227

#3
Expiscornovus Profile Picture

Expiscornovus 225 Most Valuable Professional

Last 30 days Overall leaderboard