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 / Identify the week from...
Power Automate
Unanswered

Identify the week from dates

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

IN MY SHAREPOINT MS LIST THERE ARE TWO COLUMN"DATE" AND "WEEK". MY REQUIREMENT IS I NEED TO FIND WHICH WEEK THE DATE FALLS. EG- IF 13/02/2024 FALLS IN 3RD WEEK, IN MY WEEK COLUMN THE TEXT MUST BE WEEK 3. SIMILARLY, IF THE DATE FALLS ON 2ND WEEK IT MUST BE WEEK 2.

 

DEATHSROKE123_0-1707809359238.png

 

HERE DATE 1 TO 3 OF FEB IS CONSIDERED WEEK 1 AND DATE 25 TO 29 CONSIDERED WEEK 5.
IS THERE ANY SOLUTION TO ACHIEVE THIS ... ANY WAY BY CREATING CALCULATED COLUMN IN LIST? OR THROUGH POWER AUTOMATE FLOW OR BY POWER APPS?

Categories:
  • CFernandes Profile Picture
    8,504 Most Valuable Professional on at

     @Anonymous- You mentioned Power Apps -  

    Can you try the below

     

    Round((Day(Now())/ 7)+1,0)

     CFernandes_0-1707813494142.png

     

    Also try - add(div(add(dayOfMonth(utcNow()), 6), 7), 1) in PowerAutomate. I have not thoroughly tested it.

     

    CFernandes_1-1707813720968.png

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

     

    P.S. take a look at my blog here and like & subscribe to my YouTube Channel thanks.

     

     

     

     

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    THANKS FOR YOUR RESPONSE, BUT IF WE LOOK AT DECEMBER 2025 6TH DAY WHICH IS 1ST WEEK SAT , BUT BASED ON YOUR POWER APPS CODE IT SHOWS 2ND WEEK 

     

    DEATHSROKE123_0-1707814891214.png

     

  • CFernandes Profile Picture
    8,504 Most Valuable Professional on at

    @Anonymous - Arrr I knew there will be edge cases 😐 From the top of my head I don't have an idea but will try to spend more time later, to find a possible solution. 

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 231 Super User 2026 Season 2

#2
David_MA Profile Picture

David_MA 217 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 170

Last 30 days Overall leaderboard