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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. 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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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