cancel
Showing results for
Did you mean:
Frequent Visitor

## Leap Week of Year

Hi,

i have Week Number in End of 2020, and its a leap year, and the 53 week is start from 28 Dec 2020 till 03 Jan 2021

and when i'm using the average of  week, the year is divide in 2020 & 2021, how i can make the week 53 year is still in 2020

Thanks before

1 ACCEPTED SOLUTION
Super User

@chu_en , we can week year

Week Start date = 'Date'[Date]+-1*WEEKDAY('Date'[Date],2)+1

Week Year = year([Week Start date])

or

Week Year = if([Week Num]=53, year([Week Start date]),[Year])

Now use week year, you should be able to get desired result

Power BI Features || Datamarts: https://youtu.be/8tskWsJTEpg || Field Parameters : https://youtu.be/lqF3Wa1FllE?t=70
Time Intelligence Decoded : https://youtu.be/aU2aKbnHuWs&t=145s
Did I answer your question? Mark my post as a solution! Appreciate your Kudos !! Proud to be a Super User! !!
Dashboard of My Blogs !! Connect on Linkedin !! Subscribe to my youtube Channel !!
Want To Learn Power BI | Beginners !! Advance Concepts !! Power BI For Tableau User !!
2 REPLIES 2
Super User

@chu_en , we can week year

Week Start date = 'Date'[Date]+-1*WEEKDAY('Date'[Date],2)+1

Week Year = year([Week Start date])

or

Week Year = if([Week Num]=53, year([Week Start date]),[Year])

Now use week year, you should be able to get desired result

Power BI Features || Datamarts: https://youtu.be/8tskWsJTEpg || Field Parameters : https://youtu.be/lqF3Wa1FllE?t=70
Time Intelligence Decoded : https://youtu.be/aU2aKbnHuWs&t=145s
Did I answer your question? Mark my post as a solution! Appreciate your Kudos !! Proud to be a Super User! !!
Dashboard of My Blogs !! Connect on Linkedin !! Subscribe to my youtube Channel !!
Want To Learn Power BI | Beginners !! Advance Concepts !! Power BI For Tableau User !!
Frequent Visitor

Thank you so much, it's work hopefuly, Power BI make this into native function without formulas 😊

Announcements