Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hello,
I have defined a Power Query parameter called "MyParameter" whose values are restricted to a list "ListOfPossiblesValues" obtained by quering a table from a PostgreSQL database :
Odbc.Query("dsn=MY-PostgreSQL-DB", "SELECT DISTINCT my_column FROM my_schema.my_table")[my_column]
I then want to execute a parameterize query to the same PostgreSQL data source to obtain the records that match "MyParameter" :
Odbc.Query("dsn=MY-PostgreSQL-DB", "SELECT * FROM my_shema.my_table WHERE my_column = '"&MyParameter&"'")
But whenever I try it I get the following error : "Formula.Firewall: Query "MyQuery" (step "Source") references other queries or steps and therefore cannot access a data source directly. Reconstruct this data combination."
I assume this is due to the fact that queries are executed in parallel so my second query can not use "MyParameter" since it is not defined when Power BI loads all the data.
I also tried to make a reference to "MyParameter" :
- "MyParameter" value beacome "Source"
- then I use a similar query with "Source" instead of "MyParameter" : Odbc.Query("dsn=MY-PostgreSQL-DB", "SELECT * FROM my_shema.my_table WHERE my_column = '"&Source&"'")
But I have the same error.
Does anyone have some insights for my use case ?
Solved! Go to Solution.
Hi @Anonymous ,
Dynamic M query parameters feature is in preview. Please refer to offical blog for more details about Considerations and limitations.
A single parameter cannot be bound to multiple fields nor vice-versa.
Aggregations are not supported with the feature
Row-level security (RLS) is not supported with the feature
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
Dynamic M query parameters feature is in preview. Please refer to offical blog for more details about Considerations and limitations.
A single parameter cannot be bound to multiple fields nor vice-versa.
Aggregations are not supported with the feature
Row-level security (RLS) is not supported with the feature
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
65 | |
63 | |
52 | |
37 | |
36 |
User | Count |
---|---|
82 | |
67 | |
61 | |
46 | |
45 |