Forum Discussion
Exclude items from a filtered list
- Anonymous7 years ago
Found 2 methods doing so:
1) Except(SelectColumns(MasterTable, "XXX", MasterTabl[Name]), SelectColumns(ListToExclude, "YYY", ListToExclude[Name]))
2) Anti Join using merge queries
thanks!
Looks like EXCEPT only works if the 2 tables (MasterTable & ListToExclude) have the same dimensions.
My MasterTable has 20+ columns with all sorts of information, and List ToExclude is 1 column. Is there an approach using Parameters?
Anonymous
??
The two tables in the EXCEPT in the code above are one-column tables:
EXCEPT ( DISTINCT ( MasterTable[Name] ), ListToExclude )
The number of columns in MasterTable is irrelevant.
- Anonymous7 years agoNot applicable
This is the error I am having:
A single value for column 'name' in table 'MasterTable' cannot be determined. This can happen when a measure formula refers to a column that contains many values without specifying an aggregation such as min, max, count, or sum to get a single result.
- AlB7 years agoCommunity Champion
Neither of the options suggested above are measures. They're both calculated tables as indicated
- Anonymous7 years agoNot applicable
Found 2 methods doing so:
1) Except(SelectColumns(MasterTable, "XXX", MasterTabl[Name]), SelectColumns(ListToExclude, "YYY", ListToExclude[Name]))
2) Anti Join using merge queries
thanks!