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
Anonymous
Not applicable

Power Bi Paginated Report: How to show the Week number for Previous Week?

Good Morning,

 

I have an incredible simple question that frustrating me. I need title of the report to show the week number of the previous week. As the report is showing data for a week behind.

 

The expression I am currently using is:

 

=DatePart(DateInterval.WeekOfYear,today())

 

Which obviously show the current week but no matter how I change the TODAY() it doesn't work

1 ACCEPTED SOLUTION
bradsy
Microsoft Employee
Microsoft Employee

he first week of the year could be tricky, this should work:

 

=IIF(DatePart(DateInterval.WeekOfYear,Today()) - 1 = 0, 52, DatePart(DateInterval.WeekOfYear,Today()) - 1)

View solution in original post

2 REPLIES 2
bradsy
Microsoft Employee
Microsoft Employee

he first week of the year could be tricky, this should work:

 

=IIF(DatePart(DateInterval.WeekOfYear,Today()) - 1 = 0, 52, DatePart(DateInterval.WeekOfYear,Today()) - 1)

Anonymous
Not applicable

This worked! Thank you very much

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!

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.

Top Solution Authors