Forum Discussion

sguenther's avatar
sguenther
Icon for Advocate II rankAdvocate II
10 years ago
Solved

Ignore Slicer in measure

Hey guys,   if I want to ignore a Slicer (on a report page) in a Measure, how would I go about that? I thought that's when you use the ALL() function like:   CALCULATE( COUNTROWS(Table1), ...
  • sguenther's avatar
    sguenther
    9 years ago

    mnarmeen For my problem the only thing that works is editing the visual intercations. But in your case, since you are using a date filter, I would recommend a different approach. Always create a date/calendar table and don't link this table to the rest of your data model. Then you can always use this table for your filters and have all the freedom when creating measures, like:

     

    Measure =
    Calculate(
        Countrows(Table1),
        Filter(Table1,
            Table1[Date] >= MIN(Dateteable[Date]) &&
            Table1[Date] <= MAX(Dateteable[Date]) &&
            other Filter rules....
        )
    )

    And if you don't want your date filter to influence your measure, you just leave the first two filter rules out.

     

    Hope this helps. Let me know if I misunderstood the question.

     

    Best,

    Sebastian