Reputation: 11
Working in Power BI -- pretty straight forward, looking to do the exact opposite of the formula below:
newtable = CALCULATETABLE(
table1, FILTER(
table2, table2[ID]
)
)
Right now this is filtering 675 of 4423 rows in Table 1 that were found in Table 2. I want it to do the exact opposite: 3748 of 4423 rows in Table 1 NOT found in Table 2.
Cheers
Upvotes: 0
Views: 3722
Reputation: 6940
The simplest way is EXCEPT function:
EXCEPT( BigTable, SmallTable )
This will return a BigTable without elements of SmallTable.
EXCEPT by Alberto:
Upvotes: 0
Reputation: 7151
You can try the following DAX:
newtable =
CALCULATETABLE(
table1,
NOT(table1[ID] IN VALUES(table2[ID]))
)
Results:
Upvotes: 2