Forum Discussion

cosminc's avatar
cosminc
Post Partisan
7 years ago
Solved

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

  • 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")

     

12 Replies

  • 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.

    • cosminc's avatar
      cosminc
      Post Partisan

      Hi,

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

      thanks,

      Cosmin

      • jdbuchanan71's avatar
        jdbuchanan71
        Super User

        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"
        )