Forum Discussion

LearningBI1986's avatar
LearningBI1986
Frequent Visitor
3 years ago
Solved

Filter help

Hey,

I have a measure in one of my BI reports where I want all filters to adjust the number, except one filter. I have tried ALL. ALLEXCept, and ALLSELECTED.

I have this so far - 

Test = CALCULATE(COUNTROWS(Flights_FlightCanceled),ALLSELECTED(Flights_FlightCanceled[Cancel Reason]))

I have 8 slicers that, when changed, will give different values for "Test" - Things like Flight #, Aircraft Type, Cancel Reason, etc.

I want "Test" to not change when any Cancel Reason is selected. It can change for any of the other slicers.

Any help would be really awesome 🙂

  • Anonymous's avatar
    Anonymous
    3 years ago

    Hi LearningBI1986 ,

     

    According to your description, here are my steps you can follow as a solution.

    (1) This is my test data.  

    (2) We can create a measure. 

    Test = CALCULATE(
        COUNTROWS(Flights_FlightCanceled),
        REMOVEFILTERS(Flights_FlightCanceled[Cancel Reason])
    )

    (3) Then the result is as follows.

    Best Regards,

    Neeko Tang

    If this post  helps, then please consider Accept it as the solution  to help the other members find it more quickly. 

1 Reply

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi LearningBI1986 ,

     

    According to your description, here are my steps you can follow as a solution.

    (1) This is my test data.  

    (2) We can create a measure. 

    Test = CALCULATE(
        COUNTROWS(Flights_FlightCanceled),
        REMOVEFILTERS(Flights_FlightCanceled[Cancel Reason])
    )

    (3) Then the result is as follows.

    Best Regards,

    Neeko Tang

    If this post  helps, then please consider Accept it as the solution  to help the other members find it more quickly.