Forum Discussion

smallfires0628's avatar
2 years ago
Solved

Measure not affected by Filter

I have a measure with the following code: Total Containers = sum('Booking List'[Containers]). It isn't affected by any filters I apply for the visuals, the amount stayed the same. 
  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi smallfires0628 

    You can use crossfilter() function.

    e.g The column between the tables to connect is named a.

    Total Containers =
    CALCULATE (
        SUM ( 'Booking List'[Containers] ),
        CROSSFILTER ( 'Booking List'[a], 'table'[a], BOTH )
    )
    

    Best Regards!

    Yolo Zhu

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