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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
maziiw
Frequent 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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors