Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
I am trying to use "Query" as a source for a parameter in Power BI. I can select "Query" as suggested value, however the "Query" field is greyed out.
Can some one help?
Solved! Go to Solution.
Hey @Anonymous ,
here https://docs.microsoft.com/en-us/power-query/power-query-query-parameters#creating-query-parameters you will find this little sentence "and then restrict the acceptable values for that parameter to a static list of Text values". The static list is the query. To have this option available it's necessary to first create a list.
In the query editor you can create a very simple list by adding a Blank Query:
in the "Advanced Editor"
Replace everything with this code:
let
Source = {"a", "b"}
in
Source
And you will have created your first list
Beware of the different icon 😉
Now you use this list as input for the query.
Hopefully, this is what you are looking for.
Regards,
Tom
Hey @Anonymous ,
here https://docs.microsoft.com/en-us/power-query/power-query-query-parameters#creating-query-parameters you will find this little sentence "and then restrict the acceptable values for that parameter to a static list of Text values". The static list is the query. To have this option available it's necessary to first create a list.
In the query editor you can create a very simple list by adding a Blank Query:
in the "Advanced Editor"
Replace everything with this code:
let
Source = {"a", "b"}
in
Source
And you will have created your first list
Beware of the different icon 😉
Now you use this list as input for the query.
Hopefully, this is what you are looking for.
Regards,
Tom
Thanks Tom. It works!
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 38 | |
| 36 | |
| 33 | |
| 32 | |
| 29 |
| User | Count |
|---|---|
| 129 | |
| 88 | |
| 79 | |
| 68 | |
| 63 |