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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
lavanyak
Advocate I
Advocate I

Problem with WEEKNUM function

Hello

 

Iam trying to get week number for a datetime value using WEEKNUM function in power BI Desktop.

Issue: For the same datetime value , the function is giving different results.Could someone please help me how to rectify this? 

 

Please look at the record in Red text.

BookingDatebookingweek
1/13/2018 0:002
1/13/2018 0:002
1/13/2018 0:002
1/13/2018 0:002
1/13/2018 0:004
1/13/2018 0:002

 

Any help is much appreciated!

 

1 ACCEPTED SOLUTION

Hi Xiaoxin Sheng,

Thanks for your time , I really appreciate it.

 

The issue is resolved and evrything is working fine now.I dont know what the issue was , but when I tried couple of times it came out correctly.

 

I cannot send the pbix file as well, because that has been corrected and I dont have the old data.

 

Thanks

Lavanya

 

 

 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @lavanyak,

 

I test with same date but not face the issue, can you please share a same pbix file to test?

 

Regards,

Xiaoxin Sheng

Hi Xiaoxin Sheng,

Thanks for your time , I really appreciate it.

 

The issue is resolved and evrything is working fine now.I dont know what the issue was , but when I tried couple of times it came out correctly.

 

I cannot send the pbix file as well, because that has been corrected and I dont have the old data.

 

Thanks

Lavanya

 

 

 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.