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
newgirl
Post Patron
Post Patron

Rebuild this data combination

Hi!

 

I had this recent error of "...references other queries or steps, so it may not directly access a data source. Please rebuild this data combination."

 

This error seemed weird for me because I have been refreshing my pbix fine before and suddenyl, I get this. Anyway, sure enough, I understand where it's coming from because I have one query from an SQL data source and I merged it with another query from a SharePoint Excel file.

 

I followed the steps from https://www.excelguru.ca/blog/2015/03/11/power-query-errors-please-rebuild-this-data-combination/

and the refresh works now, but my concern is that the refreshing time doubled since the duplicate SQL query is now being refreshed and loaded as well.

 

Is there some modification I can further do to have the duplicate query not double the refresh time?

merge1.jpg

 

The original query and duplcate query 

merge2.JPG

4 REPLIES 4
vanessafvg
Super User
Super User

in my experience Sharepoint takes a lot longer to load than SQL, but I am not sure that answers your question.





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Oh...in my case, I have 400K+ rows from the SQL data source while my SharePoint data sources have a range of 20 to 100 rows only, which is why it takes so long for my SQL data source, around 40 minutes). And because of the duplicate query, it takes more than an hour now 😞

 

 

But thanks for sharing!

when you say a duplicate query what do you mean, that it is running 2 queries now?  I assume  they are not actual duplicates of each other?   Have you checked if you are doing query folding?  which is sending the query for the sql server to process rather than your machine?

https://community.powerbi.com/t5/Community-Blog/Query-Folding-in-PowerBI/ba-p/1853138

 

Are you bringing back any unncessary columns you dont need, have you checked that you are only bringing back the rows you need?  Writing a sql statement to only bring back what you need might help unless you need all of it?   I dont quite understand what your purpose, you are pulling 2 different tables one from sharepoint, another from sql.  What was the purpose of rebuilding in you scenario?     Are you bringing in your tables first and staging them and then only merging  information?





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Hi @vanessafvg ! Maybe I shouldn't have used "duplicated query" to avoid confusion. What started this is that I started getting this error "...references other queries or steps, so it may not directly access a data source. Please rebuild this data combination." during refresh of pbix and after googling, found this article.

 

https://www.excelguru.ca/blog/2015/03/11/power-query-errors-please-rebuild-this-data-combination/

 

In it, it explains that for query that is having the error,the source inside should just reference another (new) query wherein that (new) query is where the data source link is stored and then the original query would just reference the source from the new query, to avoid combining an external data source with another query.

 

So after 'apply and close', I tried to "refresh all", and found out that the new query is also being loaded, which is causing the longer refresh time. Basically, the solution I found worked but the consequence is having longer refresh time due to the new query...unless there is also a solution to have the new query NOT load into the data model but the data would still be refreshed.

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 Solution Authors