cancel
Showing results for 
Search instead for 
Did you mean: 
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
Microsoft

@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
Microsoft

@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
Microsoft

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
T-Shirt Design Challenge 2023

Power BI T-Shirt Design Challenge 2023

Submit your creative T-shirt design ideas starting March 7 through March 21, 2023.

March 2023 Update3

Power BI March 2023 Update

Find out more about the March 2023 update.

March Events 2023A

March 2023 Events

Find out more about the online and in person events happening in March!

Top Solution Authors