Forum Discussion
Filter one table based on other table still in Power Query
- 5 years ago
Hi, admin_xlsior
Based on your description, I created data to reproduce your scenario. The pbix file is attached in the end.
Products:
Transcation:
You may add a new step for 'Transcation' table with the following m codes,
= let lst = Table.SelectRows(Products,each [IsActive]="Yes")[ProductID], result = Table.SelectRows(#"Changed Type",each List.Contains(lst,[ProductID])) in resultResult:
Best Regards
Allan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, admin_xlsior
Based on your description, I created data to reproduce your scenario. The pbix file is attached in the end.
Products:
Transcation:
You may add a new step for 'Transcation' table with the following m codes,
= let
lst = Table.SelectRows(Products,each [IsActive]="Yes")[ProductID],
result = Table.SelectRows(#"Changed Type",each List.Contains(lst,[ProductID]))
in
result
Result:
Best Regards
Allan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- admin_xlsior5 years agoPost Prodigy
Awesome!
Just what I need, Thank you very much, Allan. 😇