Forum Discussion
Tais_28_95
4 years agoNew Member
List to Exclude
Hi, I have a list of 76 values and I want to exclude from a table every row that have one of this 76 values in Collum "Bath". How can I do this?
Hi Tais_28_95 ,
Not with your details data ,refer the below:
Expect table:Main table:
First ,create new column on main table:
LOOKUP = IF(LOOKUPVALUE(ExceptTable[Excepttable],ExceptTable[Excepttable],Maintable[Bath])<>BLANK(),1,0)Get:
Then create new table like the below:
Newtable = FILTER ( SELECTCOLUMNS ( Maintable, "Bath", CALCULATE ( VALUES ( Maintable[Bath] ), Maintable[LOOKUP] = 0 ), "value2", CALCULATE ( VALUES ( Maintable[value2] ), Maintable[LOOKUP] = 0 ) ), NOT ( ISBLANK ( [Bath] ) ) )Outputresult:
Did I answer your question? Mark my post as a solution!
Best RegardsLucien
2 Replies
- ddplSolution Sage
Can you share sample of your data set...?
- v-luwang-msftCommunity Support
Hi Tais_28_95 ,
Not with your details data ,refer the below:
Expect table:Main table:
First ,create new column on main table:
LOOKUP = IF(LOOKUPVALUE(ExceptTable[Excepttable],ExceptTable[Excepttable],Maintable[Bath])<>BLANK(),1,0)Get:
Then create new table like the below:
Newtable = FILTER ( SELECTCOLUMNS ( Maintable, "Bath", CALCULATE ( VALUES ( Maintable[Bath] ), Maintable[LOOKUP] = 0 ), "value2", CALCULATE ( VALUES ( Maintable[value2] ), Maintable[LOOKUP] = 0 ) ), NOT ( ISBLANK ( [Bath] ) ) )Outputresult:
Did I answer your question? Mark my post as a solution!
Best RegardsLucien