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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Faris2024
Regular Visitor

Connecting the Slicer to Visual without affecting the measures

 

Spoiler
Spoiler
 

Hello everyone,

 

 

I would like to find a method to prevent the slicer from affectin the function of the measure I have created.

 

the highlighted measure includes a furmola to count a filtered coulmn from a table

the slicer added to another table to filter the data.

both tables are related but once that happens the measure in Card gets the same value.

 

This is the Card including the Measure highlighted:

2.png

 

 

This is the Measure I am applying to the highlighted Card:

3.png

 

 

This is the relation between the 2 tables I am using the Cost Center field in each table to connect:

2.png

 

 

I would appreciate your help

thank you

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Thanks for the reply from powerbidev123, please allow me to provide another insight.

Hi @Faris2024 

You can try wrapping the table argument of the Filter function with an ALL function so that the filtering context returned by the Filter function is not affected by the external slicer.

Total_Below19=CALCULATE(
    COUNTROWS(Actual),
            FILTER(ALL(Actual),...)
)


Best Regards,
Dengliang Li

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

5 REPLIES 5
Anonymous
Not applicable

Thanks for the reply from powerbidev123, please allow me to provide another insight.

Hi @Faris2024 

You can try wrapping the table argument of the Filter function with an ALL function so that the filtering context returned by the Filter function is not affected by the external slicer.

Total_Below19=CALCULATE(
    COUNTROWS(Actual),
            FILTER(ALL(Actual),...)
)


Best Regards,
Dengliang Li

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

 

powerbidev123
Solution Sage
Solution Sage

Hi @Faris2024 , To make this happen such that the slicer not affecting the measure inside the card visual. Go to Format-> Edit interactions .

powerbidev123_0-1733211442858.png

Upon clicking the slicer you will symbol like this on top right corner of the visual .

powerbidev123_1-1733211559250.png

 

 

It will stop the filtering on that particular visual. Let me know if this helps

Thank you @powerbidev123 for your helpful & unsightful information. However, What I need is to apply both the measure which includes filters and the slicer's filter.

@Faris2024  .Try using KEEPFILTERS function or ALL function in your calculate measure. This will keep your filters intact

Did not work for me

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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

Top Solution Authors