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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
SheldonEdwards
Advocate I
Advocate I

WEEKNUM Function not working in DirectQuery Mode

Hi, Good day

 

I dont understand why WEEKNUM Function is not working (but is also working) in the same table in DirectQuery Mode?

 

WEEKNUM Function working perfectlyWEEKNUM Function working perfectly

WEEKNUM Function not workingWEEKNUM Function not workingBoth WEEKNUM Functions exist in same tableBoth WEEKNUM Functions exist in same table

Thanks

 

1 ACCEPTED SOLUTION
v-ljerr-msft
Microsoft Employee
Microsoft Employee

 Hi @SheldonEdwards,

 

Based on my research test, it seems to be that WEEKNUM function won't work with return_type 2 with Direct Query mode currently. It works fine with retrun_type 1, and 21.

Week = WEEKNUM(Date[Date],1)
Week = WEEKNUM(Date[Date],21)

In addition, here is a similar thread for your reference. Smiley Happy

 

Regards

View solution in original post

1 REPLY 1
v-ljerr-msft
Microsoft Employee
Microsoft Employee

 Hi @SheldonEdwards,

 

Based on my research test, it seems to be that WEEKNUM function won't work with return_type 2 with Direct Query mode currently. It works fine with retrun_type 1, and 21.

Week = WEEKNUM(Date[Date],1)
Week = WEEKNUM(Date[Date],21)

In addition, here is a similar thread for your reference. Smiley Happy

 

Regards

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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 Kudoed Authors