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 / Help - How to get last...
Power Automate
Answered

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

(1) ShareShare
ReportReport
Posted on by 11
Help - How to get last week's number from date in Power Automate?
Categories:
I have the same question (0)
  • Verified answer
    Expiscornovus Profile Picture
    33,853 Most Valuable Professional on at
     
    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
     
  • Suggested answer
    CU10021113-0 Profile Picture
    11 on at
    Thank you very much, solve my problem!

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!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 791

#2
Valantis Profile Picture

Valantis 568

#3
Haque Profile Picture

Haque 535

Last 30 days Overall leaderboard