Forum Discussion
Filter table based on another table
8 Replies
- nirvana_mokshImpactful Individual
Can you try this : Table = CALCULATETABLE('TABLE 1',EXCEPT(VALUES('TABLE 1'[ID]),VALUES(TABLE 2 [ID])))
- gssffhRegular Visitor
This worked for my particular case. Thank you for posting.
- nirvana_mokshImpactful Individual
FYI you can also do this at the Power Query level, by doing a Merge as New and using Inner Join
- AnonymousNot applicable
Is one of these methods faster or more efficent than the other?
- AnonymousNot applicable
If you filter in PowerQuery, then you avoid loading all the "useless" date to the model.
- justin22pogiRegular VisitorI'll try doing the calculate table. But why do we need to use EXCEPT?
For the Power Query using Merge as New and Inner Join, do you have a link on the guide on how to donit?
Thanks for the reply?- AnonymousNot applicable
Go to Query Editor - > Select Table 1->Home -> Combine->Merge Queries-> YOur Table1 will appear default, Select Table 2, Select the joining column, Select the join Type as inner join.
You should be able to get lots of example in internet. Check the 'Combine Data ' section in this link. Its just straight forward.
https://docs.microsoft.com/en-us/power-bi/desktop-shape-and-combine-data
Thanks
Raj
- nirvana_mokshImpactful Individual
Below screenshots should help you:
Click on Edit Queries Which will take you to Power Query ModeHave your Table 1 and Table 2 in order and use the Join Condition as needed