The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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
Solved! Go to Solution.
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)
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)
This worked! Thank you very much