Forum Discussion
extract rows in table based on other table
- Anonymous4 years ago
Hi GTheunissen ,
So you want to filter the second table for usernames that are common to the first table?
If so, you can try this measure to filter:
Measure = IF(SELECTEDVALUE('Table 1'[username]) in VALUES('Table 2'[Column2]),SELECTEDVALUE('Table 2'[Column2]))the result will as the image shows:
If this way meets your needs, you also can view my testing pbix file.
Best regards,
Community Support Team Selina zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
If you want to filter table 1 based on the companies that exist in table 2, you can merge tables in Power Query.
step 1. Merge table1 and 2 based on company name
step2. expand company name column from table 2
step 3. export the merged table3
There are different ways to export the data, here I simply copy the whole table3 and paste it to Excel. You can filter out the null values in tab2: Company Name before copy data.