Forum Discussion

Tais_28_95's avatar
Tais_28_95
New Member
4 years ago
Solved

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 Regards

    Lucien

2 Replies

  • v-luwang-msft's avatar
    v-luwang-msft
    Community 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 Regards

    Lucien