Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Remove rows which contain data in another Table

Hi all,   I have a data set like below Fact table ID Content 1 a 2 b 3 c 4 d 6 e 7 f 8 g   another table    ID 2 3 4 5 8   Output as ...
  • TomMartens's avatar
    5 years ago

    Hey Anonymous ,

     

    I'm wondering why you don't want to use a merge?

     

    Using Power Query the left-anti join is designed for exactly this use case.

    If the data will be refreshed, the Power BI dataset, will only contain the remaining rows.

     

    The next screenshot shows the merge dialog. 

    After the merge (Left Anti) my simple fact table will look like this:

    Then, of course, you can remove the column that contains the table, and it's done.

     

    Hopefully, this provides what you are looking for.

     

    Regards,

    Tom