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
Bryanna
Helper II
Helper II

Rolling Week PBI

Hi! New to PBI and I need a calculate a Rolling Week in starting with 10/1/21 being Week 1 and it continuing from there. Screenshot below where i need to be able to calculate it 2 different ways and the intended output.

Bryanna_0-1658870238672.png

 

1 ACCEPTED SOLUTION
vapid128
Solution Specialist
Solution Specialist

WEEK(MON - SUN) = INT(([Dates]-2)/7) - int((DATEVALUE("10/1/21")-2)/7) + 1
 
WEEK(th - wed) = INT(([Dates]+2)/7) - int((DATEVALUE("10/1/21")+2)/7) + 1

View solution in original post

2 REPLIES 2
Bryanna
Helper II
Helper II

That worked!! Thanks so much

vapid128
Solution Specialist
Solution Specialist

WEEK(MON - SUN) = INT(([Dates]-2)/7) - int((DATEVALUE("10/1/21")-2)/7) + 1
 
WEEK(th - wed) = INT(([Dates]+2)/7) - int((DATEVALUE("10/1/21")+2)/7) + 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.