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
Cado_one
Resolver III
Resolver III

Unable to combine data - Please rebuild this data combination

Hi all,

 

I know there are already many topics regarding this issue but the common solution doesn't work in my case and I can't explain the reason.

When refreshing on Power BI Desktop everything is fine, when doing it on Power BI Service refresh fails and return the following error : 

  • [Unable to combine data] Section1/[Query]/[Last step of the query] references other queries or steps, so it may not directly access a data source. Please rebuild this data combination.

To work around this problem, I followed the following Ken Puls blog : https://www.excelguru.ca/blog/2015/03/11/power-query-errors-please-rebuild-this-data-combination/

 

However, even after staging queries as recommended the error is still present !

 

Here are my queries (Query 1's refresh is okay but the second and third queries's refresh give the error) :

query1.pngquery2.pngquery3.png

                       Query1                                                      Query2                                       Query3

 

The source of Query3 is Query2 and the source of Query2 is Query1

 

Where did I miss somthing during my rebuild operations ?

 

Thanks in advance !

Best regards,

Cado

1 ACCEPTED SOLUTION

After some investigation, the solution was to put every stage used for the query into a single big query.

It's not elegant but refresh is working this way..

View solution in original post

5 REPLIES 5
waeltken
Helper I
Helper I

Cado_one,

 

can you please clarify: was the refresh not working in the PBI service or even on PBI desktop? I'm having the same issue, also with nested API calls, have deployed the solution outlined by Ken Puls but the PBI service still took issue with it. Am I understanding you correctly that in your solution you put everything back into a single query? Isn't  that exactly the opposite of Ken's solution? I wish that there were a better, more surgical way to diagnose the culprit in these errors. Does calling a customer "Transform File" Helper Query-type function trigger this? 

 

Regards,

 

 

Henrik

Hi @waeltken 

 

Indeed the issue came from the Service only.

And yes I gathered every steps into a single query for the refresh to work fine in the Service.

I can't explain the reason but I confirm that it solved the problem.

 

Regards,

Cado

blopez11
Resident Rockstar
Resident Rockstar

What are the underlying data sources being used in any of the three queries you are showing?

I also see a "Merged Queries" step in Query3, what is that merging?

 

From my experience, I use staged queries for queries pulling from different sources that later need to be merged in a subsequent query

 

Thanks,

Hi @blopez11 

 

The source of the Query1 is an API web query

In Query2, the "invoked custom function" apply an other API web query to each ID of the Query1

In Query3, the "Merge queries" merge Query2 with an other API web query.

 

In every stage API queries comes from the same website but the queries are different.

 

 

After some investigation, the solution was to put every stage used for the query into a single big query.

It's not elegant but refresh is working this way..

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