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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
HelpAccount
Frequent Visitor

Removing certain page level filters whilst keeping others with measures

How can I create a measure that shows percentage of data (with several page level filters e.g. multiple slicers on my page) against the same data set minus 2 filters?

 

E.g filteredData / (filteredDataWithoutX&Yfilter)

 

 I've tried the ALL function but that unfortunately removes all the filters and I only want to remove some of the filters not return the entire unfiltered data set. I've also tried the KEEPFILTERS function but I cannot get this to work at all.

1 ACCEPTED SOLUTION
v-sihou-msft
Microsoft Employee
Microsoft Employee

@HelpAccount

 

In this scenari, since you want to remove all other filters but keep some filters, you should use ALLEXCEPT() to keep expected filters in you CALCULATE() function.

 

Regards,

View solution in original post

2 REPLIES 2
v-sihou-msft
Microsoft Employee
Microsoft Employee

@HelpAccount

 

In this scenari, since you want to remove all other filters but keep some filters, you should use ALLEXCEPT() to keep expected filters in you CALCULATE() function.

 

Regards,

Phil_Seamark
Microsoft Employee
Microsoft Employee

Hi @HelpAccount

 

You can probably build a measure were you ca hardcode the names of these filters to ignore.  If you provide a small sample of data we might be able to help.

 

Cheers,

 

Phil


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

November Carousel

Fabric Community Update - November 2024

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

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.