The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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!
User | Count |
---|---|
78 | |
77 | |
38 | |
31 | |
28 |
User | Count |
---|---|
106 | |
98 | |
55 | |
49 | |
47 |