Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Anonymous
Not applicable

Passing Parameters from an Excel table to MS SQL query

I am using Excel 365.

I have a Power Query (PQ) that reads off a MS SQL database. I need to set parameters for that query from a table in the same Excel workbook.

I created the parameters in PQ, when I feed them manually the query works but when I link those parameters to the Excel table get the following error message

Formula.Firewall: Query 'SQL_Query' (step 'Source') references other queries or steps, so it may not directly access a data source. Please rebuild this data combination.

I changed the security settings, but it did not work.

I've seen several posts that work in instances where both data sources come directly only from Excel.

 

 

Parameters.PNG

 

Thank you in advance

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

 

Here’s one of the point provided in the Microsoft documentation:

When combining or merging data between multiple data sources, you might get a Formula.Firewall error such as the one shown in your case.

 

This error can be caused by a number of reasons, such as the data privacy levels between data sources or the way that these data sources are being combined or merged. For more information about how to diagnose this issue, go to Data privacy firewall.

 

 

Below is a solution provided in a similar thread, hope it would help you.

Eyelyn9_1-1649727498478.png

 

 

Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Anonymous ,

 

Here’s one of the point provided in the Microsoft documentation:

When combining or merging data between multiple data sources, you might get a Formula.Firewall error such as the one shown in your case.

 

This error can be caused by a number of reasons, such as the data privacy levels between data sources or the way that these data sources are being combined or merged. For more information about how to diagnose this issue, go to Data privacy firewall.

 

 

Below is a solution provided in a similar thread, hope it would help you.

Eyelyn9_1-1649727498478.png

 

 

Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Vijay_A_Verma
Super User
Super User

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors
Top Kudoed Authors