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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
shekhar_shres
Advocate II
Advocate II

Unable to combine data] Section1/XXXTable/Source references other que

Hi everyone, 

I am facing a little weird problem. So, I have a big data coming from sql server that I need to extract and since we do not have any pre-defined process to standardize an sql query, the only option I have is to use employee ID in my "where" clause in my SQL query and since employees come and go so often, the EmployeeID in question is subject to frequent changes.

So, I created a table with only 1 column that is "EmployeeID" in an excel file in sharepoint where managers go and add in Employee ID. I connected the onedrive file to Power BI and used text group to make a list of employeeids.

Here's the table example

shekhar_shres_0-1683158388172.png

Here's what I have Trasformed the above table using Power Query 321,444,555 .  The queries name is "SelectedIDs".


And I passed following SQL query (Simplified for this question, the following query is named as "BusinessData" in Power Query).

"Select * from BusinessTable where EmployeeID in ("&SelectedIDs&")"

Now, I set the data source setting to Ignore Privacy Level to combine data.

The data is perfectly loaded and refreshed when using Power BI desktop, however when I publish it to Power BI services and try to refresh it in Power BI services it gives me error saying "Unable to combine data] Section1/BusinessData/Source references other queries or steps, so it may not directly access a data source. Please rebuild this data combination."}},

Has anyone ever faced and solved this problem. Please help.

Thank you in advance.

1 REPLY 1
lbendlin
Super User
Super User

yes, the formula firewall is not happy about your dynamic query as it has a risk of data leakage across queries. (well, not even a risk - it IS leaking data).

 

You could ignore privacy settings for that dataset (not good) or you could choose to keep these data sources separate in Power Query and do the join in the data model instead.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors