Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
johanbakx
Frequent Visitor

Calendar starts with incorrect week no.

Hello,

 

I created a calendar in power BI from 2016 to 2019. The problem I have is that in 2016 it starts with week 1, but I want the last 3 days of 2016 to be week 53. Below is how I created my calendar.

 

Date.png

 

Then I created my week no's.

 

Week.png

 

In search of a solution I found below comment. It suggests changing the administration settings. Seems like a good idea. However, there is no such path in my BI report. Can anyone help me find the correct path to change those settings? If you have any other solution to my problem, that advice is just as welcome!

 

Admin settings.png

 

Thanks in advance!

 

Johan

1 ACCEPTED SOLUTION
v-chuncz-msft
Community Support
Community Support

@johanbakx,

 

You may take a look at https://blog.gbrueckl.at/2012/04/iso-8601-week-in-dax/.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
v-chuncz-msft
Community Support
Community Support

@johanbakx,

 

You may take a look at https://blog.gbrueckl.at/2012/04/iso-8601-week-in-dax/.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

According to Excels Online-Help the second parameter only supports values 1 and 2. But this is not 100% true. You can also use the value 21 as second parameter, and guess what – it now returns weeknumbers according to ISO 8601. As many DAX-functions are derived from Excel (including WEEKNUM()-function), this also works with DAX’s WEEKNUM()-function!

I thought you were joking, but this actually works - Thanks, this is really useful.

Other values result in an error, but 21 does retuen the ISO week number.

V-chunz-mfst,

 

that's it! Thanks a lot!

 

Johan

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.