Skip to main content

Notifications

Community site session details
Power Automate - Building Flows
Answered

Help - How to get last week's number from date in Power Automate?

Like (1) ShareShare
ReportReport
Posted on 10 Feb 2025 11:38:19 by 11
Help - How to get last week's number from date in Power Automate?
  • Suggested answer
    CU10021113-0 Profile Picture
    11 on 10 Feb 2025 at 19:28:22
    Help - How to get last week's number from date in Power Automate?
    Thank you very much, solve my problem!
  • Verified answer
    Expiscornovus Profile Picture
    31,732 Most Valuable Professional on 10 Feb 2025 at 12:08:28
    Help - How to get last week's number from date in Power Automate?
     
    You can calculate it with an expression. Ryan Maclean has for example shared a blog about this.
     
    In your case you want to change that expression to sub 1 week from the UtcNow (Today's date).
     
    Below is an example based on ISO 8601 week numbers 
    That should return 6 today
     
    sub(div(add(dayofyear(addDays(subtractFromTime(utcNow(), if(equals(dayofweek(utcNow()),0),6,sub(dayofweek(utcNow()),1)), 'Day'),3)),6),7), 1)
     
     
    Happy to help out 😁

    I share more #PowerAutomate and #SharePointOnline content on my Blog, Bluesky profile or Youtube Channel
     

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Leaderboard > Power Automate - Building Flows

#1
David_MA Profile Picture

David_MA 292 Super User 2025 Season 1

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 259 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 212

Overall leaderboard
Loading started
Loading started