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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
cosminc
Post Partisan
Post Partisan

Filter Context

Hi all

the filters applied on page level are considered as Filter Context and can be overwritten on a calculate dax expression?

Thanks,

Cosmin

1 ACCEPTED SOLUTION

So you will need to modify the measure to use ALLEXCEPT and list the columns you would still like to be able to use in the slicers.  The measure below will respect selections on the Client, Slicer1, Slicer2 and Slicer3 columns

Funnel  Rate = 
CALCULATE(
    COUNTROWS(Source_full),
    ALLEXCEPT(
        Source_full,
        Source_full[Client],
        Source_full[Slicer1],
        Source_full[Slicer2],
        Source_full[Slicer3]
    ),
    Source_full[Label] = "A")

 

View solution in original post

12 REPLIES 12
jdbuchanan71
Super User
Super User

Hello @cosminc ,

That is correct.  In the example below the ALL ( Dates ) portion of the measure clears the filter on Year Month that is set on the page.

clearpagefilter.jpg

Hi,

so i can't create a Calculate with filter 1 feb, right?

thanks,

Cosmin

No sure I understand.  You can create a measure that calculates the amount for Feb, ignoring the filter on the page.

Count Status Feb = 
CALCULATE(
    [Count Status],
    ALL ( Dates ),
    Dates[Year Month] = "Feb-2019"
)

do i miss something?

https://drive.google.com/file/d/1rUvtYmgZY3o6mmqZ7NXP6LiZrIdmD7t9/view

measure Funnel Rate - return all sample 

expected result 

 

Label     Funnel Rate

B                 4

C                 4

D                 4

Z                 4

where 4 is count of A from the source

 

Thanks,

Cosmin

Give this a try @cosminc 

Funnel Rate = 
CALCULATE(
    COUNTROWS(Source_full),
    ALL(Source_full),
    Source_full[Label] = "A"
)

funnelrate.jpg 

thanks

it freezes any slicer...i need to be interactive with all slicers

 

Doesn't your first measure do that?  I thought you wanted all "A" regardless of other filters which is what my measure does.  What should your example look like with a filter applied and what is that specific filter.  What should the table look like if you pick Client = 'cosmin'?

no, the first measure doesn't put result of A (=4) on each listed Labels in graph

That is what my measure returns.  What should the table look like if you pick Client = 'cosmin'?

B    2

C    2

D    2

Z    2

So you will need to modify the measure to use ALLEXCEPT and list the columns you would still like to be able to use in the slicers.  The measure below will respect selections on the Client, Slicer1, Slicer2 and Slicer3 columns

Funnel  Rate = 
CALCULATE(
    COUNTROWS(Source_full),
    ALLEXCEPT(
        Source_full,
        Source_full[Client],
        Source_full[Slicer1],
        Source_full[Slicer2],
        Source_full[Slicer3]
    ),
    Source_full[Label] = "A")

 

Thanks for your help!

Cosmin

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.