Forum Discussion
Moomins
2 years agoFrequent Visitor
Filter data based on list from another worksheet
Hi I have a worksheet "A" which contains extracted data using Power Query. The data has 5000 lines which I want to filter down to just 60 lines using data extracted from another worksheet "B". ...
- 2 years ago
Hi,
you can try this 2 options
- with merge (RightOuter)
- with List.Contains
adding a custom column
= Table.SelectRows( Table.AddColumn(Source, "Custom", each List.Contains(B[Code], _[Code])), each [Custom]=true)
You can see it in the attached file
If this post isuseful to help you to solve your issue consider giving the post a thumbs up and accepting it as a solution !
serpiva64
2 years agoSolution Sage
Hi,
you can try this 2 options
- with merge (RightOuter)
- with List.Contains
adding a custom column
= Table.SelectRows( Table.AddColumn(Source, "Custom", each List.Contains(B[Code], _[Code])), each [Custom]=true)
You can see it in the attached file
If this post isuseful to help you to solve your issue consider giving the post a thumbs up and accepting it as a solution !