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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. 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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.