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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.