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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. 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
v-denglli-msft
Community Support
Community Support

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
v-denglli-msft
Community Support
Community Support

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
Resolver II
Resolver II

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

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.