cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
NastyaLagunova
Frequent Visitor

Re: Make measure ignore specific filter

The same thing.

It's very simple  work by fixed lod in Tableau but in PBI...

 

BR,

Anastasiia Lagunova

Super User IV
Super User IV

Re: Make measure ignore specific filter

@NastyaLagunova@Lasselakan@tananich@manito969@empires - OK, I believe that this is an issue that @marcorusso and I took a look at in another thread and Marco wrote up a nice blog article about. I have the fix in the attached PBIX. Basically, take ShippingDate and create another table using DISTINCT('Table'[ShippingDate]) Then relate the tables. Use this other table as your slicer and change your measure to refer to this new table. As Marco explains, this is not technically a bug but a pre-filtering "feature" of DAX.

 

 


---------------------------------------

Putting square pegs in round holes since 1972.

I have a NEW book! 
DAX Cookbook from Packt
Over 120 DAX Recipes!
Did I answer your question? Mark my post as a solution!

Proud to be a Datanaut!

srini_kris
Frequent Visitor

Re: Make measure ignore specific filter

I have the same problem - trying to calculate the Fiscal Budget for a year and need to ignore the month filter ( YYYY,MM are the filters). Why can't Microsoft make is easy like Tableau for standard time functions ?

srini_kris
Frequent Visitor

Re: Make measure ignore specific filter

Thanks, Greg the solution you proposed works. Really counterintuitive if I have to define the measure on the Date dimension table.

For now it works and that's all I care about

Kroneborge Helper I
Helper I

Re: Make measure ignore specific filter

Hi,

 

Not sure if this is what you are looking for, but if you select a slicer and then go to the format menu and click "edit interactions" you can turn off a visual you don't want to be filtered by that slicer

 

Thanks,

srini_kris
Frequent Visitor

Re: Make measure ignore specific filter

Yup, I figured it out.

 

I also created a measure to do the same for another dashboard.

 

Thanks for responding though. Power BI community is great !!

Highlighted
TheEdge_col
Frequent Visitor

Re: Make measure ignore specific filter

Hey guys!

It's dead simple, really. Use the ALL function to remove a filter on a specific column like this:

Measure = calculate(Expression,ALL(column-you-want-to-remove-filter))

That's it. ALL, used inside a CALCULATE expression, works like REMOVEFILTER.

kxtayl18
Frequent Visitor

Re: Make measure ignore specific filter

Hey, I had a similar situation that I found a solution to. I needed the sum of Table1.Amount, but ignoring any filters on Table1.Filter. I tried "Calculate( Sum( Table1.Amount) , All(Table1.Filter))" but this did not work. It didn't work because even though Table1.Filter was not being directly filtered, it was being crossfiltered by Table2.Filter. To ignore the crossfilter, I tried this and it worked:

 

Calculate( Sum( Table1.Amount) , All(Table1.Filter), All(Table2.Filter)  )

wagrezy Helper I
Helper I

Re: Make measure ignore specific filter

Yes, confirmed. It works with Calculate([expression],ALL([column name])).

Lasselakan Advocate III
Advocate III

Re: Make measure ignore specific filter

I see a lot of responses that it works with ALL, but no one adresses the specifik problem/bug in my example (download file below to see my example). There I illustrate that in some cases it won't work.

Download file

Helpful resources

Announcements
Announcing the New Spanish Forum

Announcing the New Spanish Forum

Do you need help in Spanish? Check out our new Spanish community section.

April 2020 Community Highlights

April 2020 Community Highlights

Info on our Super Users, MBAS content and badges, and updates to our support articles. - Read the full Community Highlights.

MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

Top Solution Authors
Top Kudoed Authors