Forum Discussion

pgenero's avatar
pgenero
Frequent Visitor
2 years ago
Solved

Remove filter from one column

I have created a table called Calculator Power Query that contains 2 fields (M2, M3) containing a series of values from 0 to 95, incrementing by 5.

I am using 2 filters in the report: one that points to column M2, and one that points to column M3.
I want to filter M2 and with a measure get the maximum value of that filter, avoiding all the filters that may be in M3.
The problem is that I can't avoid filtering M3. Check this image, my metric should return 55, but it is returning 45 (the maximum value in M3):

I can not use the option Edit Interactions between visuals, since my intention is to create another measure based on M3 (that at the same time should avoid M2), and then compare M2 and M3 on the same chart.
Here is my metric:

Calculator_M2 =
CALCULATE(
    MAX('Calculator'[M2]),
    ALL(Calculator[M3])
)

If I use an ALL (Calcultaor), that returns the maximum value in the column. I've tried with other combinations of ALL/ALLEXCEPT/ALLSELECTED but no luck.
I do not realize what I'm doing wrong.
Thanks!

4 Replies