Hi again,
A combination of ALLSELECTED & FILTERS should give you the ALLSELECTEDEXCEPT behaviour:
Code:
=
CALCULATE (
[YourMeasure],
[COLOR=#ff0000][B] ALLSELECTED ( YourTable ),[/B][/COLOR]
[COLOR=#ff0000][B] FILTERS ( YourTable[ColumnToKeep] )[/B][/COLOR]
)
The logic is basically use ALLSELECTED on the entire table, then bring back the explicit filters on the column you want to keep.
And we know that FILTERS ( YourTable[ColumnToKeep] ) will be more restrictive than the values of ColumnToKeep that exist in ALLSELECTED ( YourTable ), so we can safely intersect these two filter arguments.
Note that I used FILTERS rather than VALUES. FILTERS returns a column of values explicitly filtered on a column, whereas VALUES would return values that exist in the current context as a result of both explicit filters and cross-filtering.
Does this give you the behaviour you were looking for?