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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
Anonymous
Not applicable

Week over week change based on applied filters

I'm trying to calculate my outstanding AR WOW change. Which is working using following DAX formula

To store previous week Amount
WOW0_30 =
VAR CurrentWeek = SELECTEDVALUE('AR DATA SET (2)'[WeekNumber])
VAR CurrentYear = SELECTEDVALUE('AR DATA SET (2)'[Year])
VAR MaxWeekNumber = CALCULATE(MAX('AR DATA SET (2)'[WeekNumber]), ALL('AR DATA SET (2)'[Cash Date]))
RETURN
SUMX(
FILTER(ALL('AR DATA SET (2)'),
IF(CurrentWeek = 1,
'AR DATA SET (2)'[WeekNumber]= MaxWeekNumber && 'AR DATA SET (2)'[Year] = CurrentYear - 1,
'AR DATA SET (2)'[WeekNumber] = CurrentWeek - 1 && 'AR DATA SET (2)'[Year] = CurrentYear)),
[0_30])

To calculate Difference

Change0_30 = [0_30]-[WOW0_30]

 

patelr4_0-1595945878667.png

 

If I apply different Filters like payer, business location. the formula wont calculate based on applied filters and will deduct based on Total AR sum

 Capture.PNG

 

the varience will be calculated with respect to Total AR.

How can I fix this problem

1 REPLY 1
amitchandak
Super User
Super User

@Anonymous , for WOW analysis refer my blogs

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://medium.com/@amitchandak.1978/power-bi-wtd-questions-time-intelligence-4-5-98c30fab69d3

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
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.