Forum Discussion
JuanSombrero
9 years agoFrequent Visitor
Pass a list as filter argument in Power Query
Hi all, I have a fact table with transactions (sales and product numbers), and a second list of 'required product numbers'. This list is dynamic and can change every time I use the report. I want...
- 9 years ago
This would be the way:
= Table.SelectRows(factSales, each List.Contains(requiredProductNumbers, [Product]))
Deano777
3 years agoNew Member
I still get no results on this
prafael
3 years agoFrequent Visitor
For the colleague's code to work you need to convert the table with the values to be filtered to a list or replace requiredProductNumbers with a list, for example, {"Product1", "Product2", "Product3",...,"Productn"}