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

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.

Reply
allan_oliveira
Frequent Visitor

Using Parameter in Queries

Hi,
I created a parameter based on an SQL query that shows the companies, but I would like to use this parameter inside another SQL query, but when the query ends, the following error appears:

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

allan_oliveira_0-1628621254249.png

 

How to resolve this?

1 ACCEPTED SOLUTION
v-yingjl
Community Support
Community Support

Hi @allan_oliveira ,

Formula.Firewall errors are the result of Power Query’s Data Privacy Firewall which exists to prevent Power Query from unintentionally leaking data between sources.

 

In this case, the direct way to solve this issue is ignore all privacy levels in Power BI Desktop.

p.png

 

If you want to keep the privacy levels, you can refer Chris Webb's blog or Ken Paul's blog which introduce it in details. 

For more details about Data Privacy Firewall, please refer: Behind the scenes of the Data Privacy Firewall 

 

Best Regards,
Community Support Team _ Yingjie Li
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
v-yingjl
Community Support
Community Support

Hi @allan_oliveira ,

Formula.Firewall errors are the result of Power Query’s Data Privacy Firewall which exists to prevent Power Query from unintentionally leaking data between sources.

 

In this case, the direct way to solve this issue is ignore all privacy levels in Power BI Desktop.

p.png

 

If you want to keep the privacy levels, you can refer Chris Webb's blog or Ken Paul's blog which introduce it in details. 

For more details about Data Privacy Firewall, please refer: Behind the scenes of the Data Privacy Firewall 

 

Best Regards,
Community Support Team _ Yingjie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

AlexisOlson
Super User
Super User

This is a security settings issue. Check out this article referenced in these previous posts.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors