Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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!
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
112 | |
97 | |
85 | |
67 | |
59 |
User | Count |
---|---|
150 | |
120 | |
100 | |
87 | |
68 |