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.

 

 


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

Not the Power BI thought police...

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

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.

Highlighted
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
New Ranks Launched March 24th!

New Ranks Launched March 24th!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power BI Community!

‘Better Together’ Contest Finalists Announced!

‘Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Arun 'Triple A' Event Video, Q&A, and Slides

Arun 'Triple A' Event Video, Q&A, and Slides

Missed the Arun 'Triple A' event or want to revisit it? We've got you covered! Check out the video, Q&A, and slides now.

Join THE global Microsoft Power Platform event series.

Join THE global Power Platform event series.

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities.

Community Summit North America

Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors