Forum Discussion

bood11's avatar
bood11
Regular Visitor
3 years ago

52 weeks calculation

I want the week to start on Sunday in my calendar table for 2021 and 2022 ( 52 weeks), but that doesn't happen when I apply the weekum=(calendar date,1) -1. However, the last two days of the final week of 2021 to the start of 2022, became week 0. Additionally, 2021's week computation is inaccurate because it is one week behind 2022. For instance, if it's week 12 in 2022 , it'll be week 11 in 2021.

 

(The measure worked with 2022)

 

 

Looking for solution pls.

 

Thanks in advance, 

4 Replies

  • mahoneypat's avatar
    mahoneypat
    Microsoft Employee

    Can you show what your expected weeknum is for the first 7 days of each year (2020 and 2021)?

    Pat

     

    • bood11's avatar
      bood11
      Regular Visitor

      Sorry for being late, the first week of 2022 start on Sunday 01/02/22 and the last day is 01/08/22 as for 2021, the first week is from 12/27/20 to 01/02/21 (mm/day/year)

  • v-chenwuz-msft's avatar
    v-chenwuz-msft
    Community Support

    Hi bood11 ,

     

    Please give what you want the result to look like?

     

    Best Regards

    Community Support Team _ chenwu zhu

     

    • bood11's avatar
      bood11
      Regular Visitor

      All I want is the first week of 2022 start 12/26/22