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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
afaro
Helper III
Helper III

Can one slicer filter be selectively applied while other not?

I have a fact table which is something like this:

ProjectMetricRevenueYear
AServices202022
BProduct302022
BServices402023
AProduct502023
AServices602022
BProduct702022

 

I have two measures as follows:

Total = CALCULATE(SUM(Pipeline[Revenue]))
Services Total = CALCULATE([Total], Table[Metric] = "Services")
 
I create a matrix:
I put the rows as Project and the values as Services, Services Total.
I also add two slicers: Year and Metric
 
So, when I put my year as 2023 (for example) and metric as Product,
The value of Total changes with the filter as 2023 and metric as Product. However, the Total Services gives
me the Total with the filter only as year 2023 for each project. It doesn't apply the filter of metric as Product
which should give me the total services as 0 to my understanding but it doesn't. When I change the slicer year to 2022 (let's say), the Total Services gives me Services value for the year 2022 only but changing the slicer for metric to Product doesn't
change anything to the Services Total.

I am trying to understand why this happens. My initial thought was because the initial filter context was being
reset by CALCULATE but this doesn't seem to be the case as it is still being applied to Total and Services
Total for the year slicer.

Thank you in advance.
 
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @afaro ,

To ensure that the slicer correctly affects and measure, you can adjust the measure to follow the slicer selection. The following are ways to modify the measure:

Services Total =
CALCULATE (
    [Total],
    FILTER ( ALLSELECTED ( Table[Metric] ), Table[Metric] = "Services" )
)


This measure is used to keep the slicer selection in context while still filtering for "Services". This way, if "Products" is selected in the slicer, 0 should be displayed correctly.

 

How to Get Your Question Answered Quickly - Microsoft Fabric Community

If it does not help, please provide more details with your desired out put and pbix file without privacy information.

 

Best Regards,

Ada Wang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @afaro ,

To ensure that the slicer correctly affects and measure, you can adjust the measure to follow the slicer selection. The following are ways to modify the measure:

Services Total =
CALCULATE (
    [Total],
    FILTER ( ALLSELECTED ( Table[Metric] ), Table[Metric] = "Services" )
)


This measure is used to keep the slicer selection in context while still filtering for "Services". This way, if "Products" is selected in the slicer, 0 should be displayed correctly.

 

How to Get Your Question Answered Quickly - Microsoft Fabric Community

If it does not help, please provide more details with your desired out put and pbix file without privacy information.

 

Best Regards,

Ada Wang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

This gives me blank data for this measure since it removes all the initial filter context. But this works as using ALLEXCEPT worked for my specific use. 

lbendlin
Super User
Super User

If you want independent slicers you need to feed your slicers from disconnected tables.

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.