Forum Discussion
Pass a list as filter argument in Power Query
- 9 years ago
This would be the way:
= Table.SelectRows(factSales, each List.Contains(requiredProductNumbers, [Product]))
Hey I wanted to let everyone in here know that performed an efficiency test on utilizing the list as filter argument vs simply just using the filter drop down. My filter list was about 13 - 20 out of probably 100 total unique field values to compare against. It took significantly longer to refresh the dataset when I utilized the filter list versus the simple drop down filter in query editor. (10 seconds using the simple method; 59 seconds using the filter list).
Does anyone have any thoughts here? It is clearly a lot easier and cleaner to use that list as the filter argument, but in my situation it significantly increased the refresh time. Is it possible that I am doing something wrong? Any comments greatly appreciated.
Thanks,
Nick