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
Xavius
Frequent Visitor

WOW % not working with slicer

Hi all,  

I have issue that my slicer is not working with my WOW%, sales last week measures.   

 It's shows empty values in table, but it's works fine without filtering 


Sales last week =  

Calculate ( 

SUM( Table[sales]), 

FILTER( ALL( table[week]), 

table[week]=MAX(table[week])-1))

 

Sales this week =  

Calculate ( 

SUM( Table[sales]), 

FILTER( ALL( table[week]), 

table[week]=MAX(table[week]))) 

 

WOW% = DIVIDE(

Sales last week - Sales this week, Sales lastweek week) 

 

please help me on this, appreciate it

1 ACCEPTED SOLUTION

Hi @Xavius 

see my last reply

 

Sales last week =
CALCULATE(
SUM( Table[sales] ),
REMOVEFILTERS( table[week] ),
table[week] = MAX( table[week] ) - 1
)

 

Sales this week =
CALCULATE(
SUM( Table[sales] ),
REMOVEFILTERS( table[week] ),
table[week] = MAX( table[week] )
)

 

or 

 

Sales last week =
CALCULATE(
SUM( Table[sales] ),
REMOVEFILTERS(  ),
table[week] = MAX( table[week] ) - 1
)

 

Sales this week =
CALCULATE(
SUM( Table[sales] ),
REMOVEFILTERS(  ),
table[week] = MAX( table[week] )
)

 

If this helped, please consider giving kudos and mark as a solution

@me in replies or I'll lose your thread

Want to check your DAX skills? Answer my biweekly DAX challenges on the kubisco Linkedin page

Consider voting this Power BI idea

Francesco Bergamaschi

MBA, M.Eng, M.Econ, Professor of BI

View solution in original post

11 REPLIES 11
rajendraongole1
Super User
Super User

Hi @Xavius - as per above image, we can tweak the filter to removefilter function as below:

 

Sales last week =
CALCULATE(
SUM( Table[sales] ),
FILTER(
REMOVEFILTERS( table[week] ),
table[week] = MAX( table[week] ) - 1
)
)

 

also in this week as well: use removefilter:

Sales this week =
CALCULATE(
SUM( Table[sales] ),
FILTER(
REMOVEFILTERS( table[week] ),
table[week] = MAX( table[week] )
)
)

now you can find the percentage.

 

Hope this helps.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Hi @rajendraongole1 

 

REMOVEFILTERS is not a table function so you cannot write

 

FILTER ( 
        REMOVEFILTERS ( ), -- here you get an error
        ....
)

 

The correct DAX is

 

Sales last week =
CALCULATE(
SUM( Table[sales] ),
REMOVEFILTERS( table[week] ),
table[week] = MAX( table[week] ) - 1
)

 

also in this week as well: use removefilter:

Sales this week =
CALCULATE(
SUM( Table[sales] ),
REMOVEFILTERS( table[week] ),
table[week] = MAX( table[week] )
)

Finally, it might be that the REMOVEFILTERS called is not enough (there might be multiple filters applied), in that case

 

Sales last week =
CALCULATE(
SUM( Table[sales] ),
REMOVEFILTERS(  ),
table[week] = MAX( table[week] ) - 1
)

 

Sales this week =
CALCULATE(
SUM( Table[sales] ),
REMOVEFILTERS(  ),
table[week] = MAX( table[week] )
)

 

If this helped, please consider giving kudos and mark as a solution

@me in replies or I'll lose your thread

Want to check your DAX skills? Answer my biweekly DAX challenges on the kubisco Linkedin page

Consider voting this Power BI idea

Francesco Bergamaschi

MBA, M.Eng, M.Econ, Professor of BI

Thanks @FBergamaschi

 

I forgot to remove the filter function on the top ..

 

Anyway it worked finally with removefilter function 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





It worked but when I put the region all the values will be repeated to the total 

Which of the two code versions I gave you worked?

 

What table does the column region  come from? Has this table a relationship to the table Table?

 

 

 

 

Sales last week =
CALCULATE(
SUM( Table[sales] ),
REMOVEFILTERS( table[week] ),
table[week] = MAX( table[week] ) - 1

This one. 
Unfortunately I cannot share the table yet 

 buy 

 I have column weeks like W 2025/01, region , sales column , year column include 2025,2024 

and I have  calculated week column that substitute the "/", "W" from week column 

cause it's not accepted in last weeksales measure

 that's it  

Xavius
Frequent Visitor

And it's one table no other tables 

Unfortunately, it's not working at all 🥹

Hi @Xavius 

see my last reply

 

Sales last week =
CALCULATE(
SUM( Table[sales] ),
REMOVEFILTERS( table[week] ),
table[week] = MAX( table[week] ) - 1
)

 

Sales this week =
CALCULATE(
SUM( Table[sales] ),
REMOVEFILTERS( table[week] ),
table[week] = MAX( table[week] )
)

 

or 

 

Sales last week =
CALCULATE(
SUM( Table[sales] ),
REMOVEFILTERS(  ),
table[week] = MAX( table[week] ) - 1
)

 

Sales this week =
CALCULATE(
SUM( Table[sales] ),
REMOVEFILTERS(  ),
table[week] = MAX( table[week] )
)

 

If this helped, please consider giving kudos and mark as a solution

@me in replies or I'll lose your thread

Want to check your DAX skills? Answer my biweekly DAX challenges on the kubisco Linkedin page

Consider voting this Power BI idea

Francesco Bergamaschi

MBA, M.Eng, M.Econ, Professor of BI

FBergamaschi
Solution Sage
Solution Sage

Please show the issue with some image, explain what you are filtering

I'm trying to filter the week in slicer  

this sales week measure show numbers no issue. 
but the last sales week, and wow% measure. 
cause they contains -1 inside whenever I filter the week it's show empty in table 

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.

Top Solution Authors