web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Automatically update o...
Power Automate
Answered

Automatically update only month and year when match the date

(0) ShareShare
ReportReport
Posted on by 190

Hi.

 

I want to update the date on excel list automatically, but I just wanna to update the month and year only. Is this possible? and how to make a flow with this condition?

 

example:

pritadewii_0-1702347212719.png

 

Categories:
I have the same question (0)
  • v-jefferni Profile Picture
    on at

    Hi @pritadewii ,

     

    Could you please share more details? Do you have two tables in Excel worksheet?

     

    Best regards,

  • pritadewii Profile Picture
    190 on at

    Hi @v-jefferni thank you for replying. 

     

    No, I don't have two tables in excel, only one. I want to update those 3 columns with today's month and year (the date is not included, still the same).

     

    Example:

    BillingDateReminderDateDueDate
    2023-12-112023-12-122023-12-13

     

    the "yyyy-MM" could change dynamically when match the month and year

     

     

    Do you know how to solved this? Thank you.

  • Verified answer
    v-jefferni Profile Picture
    on at

    Hi @pritadewii ,

     

    Still not sure of what you want to do to the table. But you can use addToTime function in expression to add 1 month to each field dynamic content.

     

    I assume the Update a row action is inside an Apply to each control, then the expression for BillingDate filed will be as follows:

    addToTime(items('Apply_to_each')?['BillingDate'],1,'Month','yyyy-MM-dd')

     

    Best regards,

  • pritadewii Profile Picture
    190 on at

    Thank you for the answer @v-jefferni 

     

    What I mean is I want to update the date (only month and year) at the column more dynamically. Example today is December 2023 so the column value "2023-12-11", the next month (which is January 2024) the column automatically update month and year, so the column value "2024-01-11", for the next month again is February 2024, the column value contains "2024-02-11". The date always has same value that is 11.

  • v-jefferni Profile Picture
    on at

    Hi @pritadewii ,

     

    May I have a look at your real Excel table? You can cover sensitive info, snapshot and attach it in your reply.

     

    Best regards,

  • pritadewii Profile Picture
    190 on at

    this is my excel list:

    pritadewii_0-1702451101893.png

     

  • Verified answer
    v-jefferni Profile Picture
    on at

    Hi @pritadewii ,

     

    If you need to add 1 month to the three columns of all the entries, you can just use a List rows present in a table action, Apply to each, then Update a row. In Update a row action, the fields of the three columns use the expression I wrote before.

     

    Best regards,

  • pritadewii Profile Picture
    190 on at

    Hi @v-jefferni 

     

    Thank you, I've just tried your advice and I think it works on my flow.

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 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard