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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register 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
Most Valuable Professional
Most Valuable Professional

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.