Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
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.
| BookingDate | bookingweek |
| 1/13/2018 0:00 | 2 |
| 1/13/2018 0:00 | 2 |
| 1/13/2018 0:00 | 2 |
| 1/13/2018 0:00 | 2 |
| 1/13/2018 0:00 | 4 |
| 1/13/2018 0:00 | 2 |
Any help is much appreciated!
Solved! Go to 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
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
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!