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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

I need urgent help to fix this Dax measure issue

202052 example screenshot.PNG202101 Baseweek Example.PNGHi, 

 

I have measures like L1, L4, L13, L52 created in my report and these measures calculate total sales values based on the user-selected base week in the slicer. 

 

Example: If the user selects Base week format(Fiscal year and fiscal week) (202052) then,

1) L1 measure calculates total sales by subtracting 1 week and it will show total sales data for the week (202051)in the report and

2) L4 will calculate total sales by subtracting 4 weeks and it will show total sales data for the week (202051,202050,202049,202048) in the report

3) L13 will calculate total sales by subtracting 13 weeks and it will show total sales data for the week (202051,202050,202049,202048,202047,202046,202045,202044,202043,202042,202041,202040) in the report

4) L52 will calculate total sales by subtracting 52 weeks and it will show total sales data for the week (202051 to 202001) in the report

 

After the fiscal year got changed these formulae are not working properly. From Base week 202101 the formula is not working properly for L1, L4, L13, L52 Measure so I need to fix this issue.

 

List of measures used,

 

1)  L1 = CALCULATE([Total Sales],FILTER(Catman_Calendar,and(((Catman_Calendar[CY_BASEWEEK])=(MAX( Weeklist[Base Week]))),((Catman_Calendar[CY_BASEWEEK])=([CY_BaseWeek_Selected])))))

2) L4 = (CALCULATE([Total Sales],FILTER(Catman_Calendar,and(((Catman_Calendar[CY_BASEWEEK])>(MAX( Weeklist[Base Week])-4)),((Catman_Calendar[CY_BASEWEEK])<=([CY_BaseWeek_Selected]))))))

3) L13 = (CALCULATE([Total Sales],FILTER(Catman_Calendar,and(((Catman_Calendar[CY_BASEWEEK])>(MAX( Weeklist[Base Week])-13)),((Catman_Calendar[CY_BASEWEEK])<=([CY_BaseWeek_Selected]))))))

4) L52 = (CALCULATE([Total Sales],FILTER(Catman_Calendar,and(((Catman_Calendar[CY_BASEWEEK])>(MAX( Weeklist[Base Week])-52)),((Catman_Calendar[CY_BASEWEEK])<=([CY_BaseWeek_Selected]))))))

 

 
 

 

 

 

1 REPLY 1
amitchandak
Super User
Super User

@Anonymous , check if my Week blogs can help

Power BI — Week on Week and WTD
https://medium.com/@amitchandak.1978/power-bi-wtd-questions-time-intelligence-4-5-98c30fab69d3
https://community.powerbi.com/t5/Community-Blog/Week-Is-Not-So-Weak-WTD-Last-WTD-and-This-Week-vs-Last-Week/ba-p/1051123
https://www.youtube.com/watch?v=pnAesWxYgJ8

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.