Hi all,
I created a parameter table to enable the final user to pre-filter data based on their input. When I try a single input (e.g. month number) it works well --> I created a function as explained by Ken Puls (Building a Parameter Table for Power Query)
What I try to do is to allow the final user(s) to select/filter based on:
I tried to define them as a list {2,4,6} and {2..6} but I'm not sure how to use it afterwards for filtering my query.
With the getParameter function I have the correct input {2,4,6} , but don't know how to use it for filtering.
I tried to use List.Contains but of course my column containing the months is not a list so this generates an error.
Any idea how to easily solve this?
To summarize: I would like to replace this code and make it dynamic based on my parameter table in Excel
Multiple values:
Range:
Thanks for your suggestions.
Have a nice day!
I created a parameter table to enable the final user to pre-filter data based on their input. When I try a single input (e.g. month number) it works well --> I created a function as explained by Ken Puls (Building a Parameter Table for Power Query)
What I try to do is to allow the final user(s) to select/filter based on:
- a single value (is working perfectly);
- a range (e.g month 2 till 6);
- multiple values (e.g months 2,4,6 and 8)
I tried to define them as a list {2,4,6} and {2..6} but I'm not sure how to use it afterwards for filtering my query.
With the getParameter function I have the correct input {2,4,6} , but don't know how to use it for filtering.
I tried to use List.Contains but of course my column containing the months is not a list so this generates an error.
Any idea how to easily solve this?
To summarize: I would like to replace this code and make it dynamic based on my parameter table in Excel
Multiple values:
Power Query:
Table.SelectRows(#"Inserted Month", each ([Month] = 2 or [Month] = 4 or [Month] = 6))
Power Query:
Table.SelectRows(#"Inserted Month", each [Month] >= 2 and [Month] <= 6)
Thanks for your suggestions.
Have a nice day!