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 : 1pSc3rWkpQr2yC6aj9RX7i
Power Automate - Building Flows
Answered

Changing the date Based on Condition Using power automate flow

Like (0) ShareShare
ReportReport
Posted on 6 Aug 2023 16:08:13 by 18

I am new to Power automate, any idea is much welcome pls

 

I am creating a recurrence flow  , the condition is a new date should be created in the   column new  based on the condition  ,  condition is  if the column date  should be updated to today + 90 days  plus it should be pushed to end of month  .

 

ex -  date  31/08/2023 , then  the date i want to autogenerate using the flow is today + 90 days (7/8/2023 + 90 ) and it should be pushed to end of month , so the date i want is Nov/30/23 , is this possible with power automate? 

stagecompanydatenew
stage1HCl12-10-2023 
stage2TCS31-11-2023 
stage3TCS21-06-2023 
stage3HP02-04-2023 
stage4HP07-08-2023 
stage1HP08-05-2023 
  • Arunkumar333 Profile Picture
    18 on 09 Aug 2023 at 00:19:09
    Re: Changing the date Based on Condition Using power automate flow

    Thanks , will have a check and will update you 

  • Verified answer
    v-jefferni Profile Picture
    on 08 Aug 2023 at 02:17:58
    Re: Changing the date Based on Condition Using power automate flow

    Hi @Arunkumar333 ,

     

    I understand now. You can use below expression in Update a row action:

    vjefferni_0-1691460850945.png

    subtractFromTime(addToTime(startOfMonth(addToTime(items('Apply_to_each')?['date'],90,'day')),1,'month'),1,'second','dd-MM-yyyy')

     

    The logic is:

    1. add 90 days to current date column value

    2. get the start of the calculated date

    3. add a month to this day to get the start of next month

    4. subtract 1 second to get the last of the month

     

    Best regards,

  • Arunkumar333 Profile Picture
    18 on 07 Aug 2023 at 15:19:10
    Re: Changing the date Based on Condition Using power automate flow

    Hi , i have updated the question, thanks for taking to reply , can you pls check now 

  • v-jefferni Profile Picture
    on 07 Aug 2023 at 02:14:11
    Re: Changing the date Based on Condition Using power automate flow

    Hi @Arunkumar333 ,

     

    Could you please share more details about your scenario? I cannot understand the condition you was saying. Using the table you provided, please complete it in the "new" column assuming today is 8/7/2023.

    stage company date new
    stage1 HCl 12-03-2023 ?
    stage2 TCS 31-05-2023 ?
    stage3 TCS 21-06-2023 ?
    stage3 HP 02-04-2023 ?
    stage4 HP 07-04-2023 ?
    stage1 HP 08-05-2023 ?

     

    Best regards,

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

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 986 Moderator

#2
stampcoin Profile Picture

stampcoin 699 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 577 Super User 2025 Season 2

Loading complete