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 September 15. Request your voucher.

Reply
nicolast29
Helper V
Helper V

dax removefilter not reconize in excel

Hi

I created a dashboard in Excel with dax on my computer, it works well

There is some pivot, and i have a measure like this one:

 

mesure 1:=var nbmois =5
var CAN1p = CALCULATE([VENTES DE MARCHANDISES + PRODUCTION 2];REMOVEFILTERS(Exercices[Exercices]);Exercices[Exercices]="N-1 Pr")

var CAN1 = CALCULATE([VENTES DE MARCHANDISES + PRODUCTION 2];REMOVEFILTERS(Exercices[Exercices]);Exercices[Exercices]="N-1")

return
SWITCH (
    TRUE;
    min(Exercices[Exercices] ) = "N"; [Switch SIG Balance 2] / ( [VENTES DE MARCHANDISES + PRODUCTION 2] );
    min(Exercices[Exercices] ) = "N-1"; [Switch SIG Balance 2] / ( [VENTES DE MARCHANDISES + PRODUCTION 2] );
    min(Exercices[Exercices] ) = "Variation"; [Switch SIG Balance 2] /(CAN1*5/12)


As you see i use REMOVEFILTERS


I try to use this dashboard on a another computer, and REMOVEFILTERS isnt' reconize ....
fist time i see that

I try to remove and reinstall Office, same way

 

If someone have a idea

Thanks

Nicolas

1 ACCEPTED SOLUTION
bhanu_gautam
Super User
Super User

@nicolast29 , Remove filter was introduced after 2016 version so, you can check version and if there is still issue you can use ALL instead of remove filter

 

mesure 1:=var nbmois =5
var CAN1p = CALCULATE([VENTES DE MARCHANDISES + PRODUCTION 2], ALL(Exercices[Exercices]), Exercices[Exercices]="N-1 Pr")

var CAN1 = CALCULATE([VENTES DE MARCHANDISES + PRODUCTION 2], ALL(Exercices[Exercices]), Exercices[Exercices]="N-1")

return
SWITCH (
TRUE,
min(Exercices[Exercices]) = "N", [Switch SIG Balance 2] / ([VENTES DE MARCHANDISES + PRODUCTION 2]),
min(Exercices[Exercices]) = "N-1", [Switch SIG Balance 2] / ([VENTES DE MARCHANDISES + PRODUCTION 2]),
min(Exercices[Exercices]) = "Variation", [Switch SIG Balance 2] / (CAN1 * 5 / 12)
)




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






View solution in original post

2 REPLIES 2
bhanu_gautam
Super User
Super User

@nicolast29 , Remove filter was introduced after 2016 version so, you can check version and if there is still issue you can use ALL instead of remove filter

 

mesure 1:=var nbmois =5
var CAN1p = CALCULATE([VENTES DE MARCHANDISES + PRODUCTION 2], ALL(Exercices[Exercices]), Exercices[Exercices]="N-1 Pr")

var CAN1 = CALCULATE([VENTES DE MARCHANDISES + PRODUCTION 2], ALL(Exercices[Exercices]), Exercices[Exercices]="N-1")

return
SWITCH (
TRUE,
min(Exercices[Exercices]) = "N", [Switch SIG Balance 2] / ([VENTES DE MARCHANDISES + PRODUCTION 2]),
min(Exercices[Exercices]) = "N-1", [Switch SIG Balance 2] / ([VENTES DE MARCHANDISES + PRODUCTION 2]),
min(Exercices[Exercices]) = "Variation", [Switch SIG Balance 2] / (CAN1 * 5 / 12)
)




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






Thanks a lot

Have a nice day

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.