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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
maziiw
Regular Visitor

ISO Year-Week pick up week numbers wrong

I have a query which shows data per week.

 

IT shows 2024-53 week as ISO week, but 2024 should have 52 ISO weeks. According to the rules, if Thursday is in new Year, then ISO week should start from 1.

 

How can I fix this so that 30/12 and 31/12 goes to ISO week 1?

 

I am getting this:

maziiw_0-1749606973236.png

 

1 ACCEPTED SOLUTION
Irwan
Super User
Super User

hello @maziiw 

 

try adding 21 in your weeknum DAX. as far as i know, 21 equal to ISOWEEKNUM in excel.

Irwan_0-1749609658770.png

Week = WEEKNUM('Table'[Date],21)
 
 
Hope this will help.
Thank you.

View solution in original post

1 REPLY 1
Irwan
Super User
Super User

hello @maziiw 

 

try adding 21 in your weeknum DAX. as far as i know, 21 equal to ISOWEEKNUM in excel.

Irwan_0-1749609658770.png

Week = WEEKNUM('Table'[Date],21)
 
 
Hope this will help.
Thank you.

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

May 2025 Monthly Update

Fabric Community Update - May 2025

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