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

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

Reply
MorePowerBI
Helper II
Helper II

Question about WEEKNUM

I'm using 

WEEKNUM(TODAY(),1)-1
to obtain the week number of the previous week, but if today was the first week of the year would this formula return a 0? or will it return 52?
 
1 REPLY 1
rfigtree
Resolver III
Resolver III

Would this work.

WEEKNUM(TODAY()-7,1)

Because you will get 0 when it is week 1.

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.

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.