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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. 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
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

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.