Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi, this is actually an issue with PowerQuery inside an Excel report - hope this forum can help.
Several months ago, I created an Excel report that accesses and refreshes data from other Excel workbooks in the same directory. Users refresh the data when they need to bring in additional source Workbooks.
Until around two weeks ago, this report was refreshing correctly for users. Then, around two weeks ago, they began getting the following error when they attempt to refresh:
Query '[query name]' references other queries or steps, so it may not directly access a data source. Please rebuild this data combination.
However, I can still refresh the report with no errors, and I believe the data is coming through correctly. So, why would users get this error, but not me? And why would this error pop up recently, on a report with no changes? I am reluctant to dig in and rejig the data flow when I don't yet understand the reason for this problem.
Solved! Go to Solution.
Thanks for your reply. I think I may have found the answer over the weekend...or at least I hope so. It looks like the users may have made a change to the data source privacy level of one of the data sources, such that the sources don't match each other any more. I have not yet confirmed that this is the cause of their issue, but I have stepped through all the queries with another user, who was prompted to select privacy levels, and was then able to successfully refresh. As for your other questions:
Hi @McSarah
For what it is worth at this stage, that error message si form the Formula Firewall. It is being generated because a query is accessing a data source and another query.
If the Privacy Levels were set and thigs were working, then yes, perhaps somePrivacy Levels were altered.
Further reading:
https://community.powerbi.com/t5/Power-Query/Formula-Firewall-Error/m-p/1061155
https://www.poweredsolutions.co/2019/03/12/data-privacy-and-the-formula-firewall/
Cheers
Phil
If I answered your question please mark my post as the solution.
If my answer helped solve your problem, give it a kudos by clicking on the Thumbs Up.
Proud to be a Super User!
Hi @McSarah
For what it is worth at this stage, that error message si form the Formula Firewall. It is being generated because a query is accessing a data source and another query.
If the Privacy Levels were set and thigs were working, then yes, perhaps somePrivacy Levels were altered.
Further reading:
https://community.powerbi.com/t5/Power-Query/Formula-Firewall-Error/m-p/1061155
https://www.poweredsolutions.co/2019/03/12/data-privacy-and-the-formula-firewall/
Cheers
Phil
If I answered your question please mark my post as the solution.
If my answer helped solve your problem, give it a kudos by clicking on the Thumbs Up.
Proud to be a Super User!
@McSarah
You may refer to the mothod in this blog:
https://aforanalytic.com/power-bi-query-references-other-queries-or-steps-so-it-may-not-directly-acc...
Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.
@McSarah we need to do some troubleshooting and eliminate possible causes:
Copying DAX from this post? Click here for a hack to quickly replace it with your own table names
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C
I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com
Thanks for your reply. I think I may have found the answer over the weekend...or at least I hope so. It looks like the users may have made a change to the data source privacy level of one of the data sources, such that the sources don't match each other any more. I have not yet confirmed that this is the cause of their issue, but I have stepped through all the queries with another user, who was prompted to select privacy levels, and was then able to successfully refresh. As for your other questions:
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 19 | |
| 9 | |
| 8 | |
| 7 | |
| 6 |