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
sergazyyev
Frequent Visitor

Dataset needs gateway

sergazyyev_0-1673954046906.png

One dataset (A) is connected to another (B). When I want to refresh the first one (A) I cannot do it because second dataset (B) acts as a datasource and needs a gateway. How to avoid this issue because I do not want second dataset (B) to be refreshed but just have a connection to the first one (A)?

1 ACCEPTED SOLUTION

Ok, now it's making sense. It's a composite model. PowerBi Dataset B + other sources. Are those other sources connected with a gateway? There is an option when using a gateway to allow the dataset use cloud and onpremise sources without requiring a gateway. That one can make conflict if it's not checked.

ibarrau_0-1674653128915.png

 

I hope that helps,


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Happy to help!

LaDataWeb Blog

View solution in original post

8 REPLIES 8
sergazyyev
Frequent Visitor

Hi! Thank you for your response!

Let me explain a full picture step by step.

I have a dataset B that contains some historical data and does not need to be refreshed. So, in each query in Power Query Editor I turned off report refresh. Then I published this dataset B to the Service. 

Then I have a dataset A that contains fresh data and needs to be refreshed. Also, it must have historical data. So, while I am in dataset A, I connected to the dataset B through "Get data -> Power BI datasets" and chose dataset B. 

To put dataset A on scheduled refresh, I go to the gateway connection settings. This is when things get unclear and dataset B which acts as a data source requires adding to gateway

sergazyyev_0-1674626108249.png

Why does it happen? 

Ok, now it's making sense. It's a composite model. PowerBi Dataset B + other sources. Are those other sources connected with a gateway? There is an option when using a gateway to allow the dataset use cloud and onpremise sources without requiring a gateway. That one can make conflict if it's not checked.

ibarrau_0-1674653128915.png

 

I hope that helps,


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Happy to help!

LaDataWeb Blog

Hi!

Thank you for your response!

After checking an option of allowing user's cloud data sources to refresh through the gateway cluster, it became optional to add gateway for the dataset B.

sergazyyev_0-1675071251148.png

At least this allowed me to apply the settings. However, when I wanted to refresh dataset A it led to another problem.

sergazyyev_1-1675071785249.png

I am investigating the issue but if you have a solution, it would me much appreciated

Hi. I'm glad it worked. The new error specifies the issues very clear. "Refresh is not supported for datasets witha calculated table or calculated column that depends on a table which references Analysis Services using Direct Query".

You might have a column that is not allowed using direct query on the tabular model. Please check the model and remove the calculated column (dax). You might be able to try a Measure if it's reaaaaaally necessary.

I hope that helps,


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Happy to help!

LaDataWeb Blog

Hi!

Thank you for your responses and time! I appreciate the way you structurely and patiently helped me!

The problem has been solved after I removed calculated columns but I really needed them (however, it's whole another story)

sergazyyev
Frequent Visitor

Thank you for your answer!

To add more information, read the following:

When I connect to dataset B through get data from Power BI Dataset it automatically connects to AnalysisServices. 

sergazyyev_0-1674545617170.png

Here is my lineage:

sergazyyev_1-1674545885982.png

I want to refresh dataset A but it requires a gateway for dataset B. How to avoid this requirment of adding the gateway?

Hi. If you get data from dataset B when creating A as Live Connection like I have said before, then there is nothing to refresh. It should always be the same source from A as B. No gateway, no refresh, just live connection.

If you need a gateway it might be for refreshing B from the SQL Servers if they are on premise.

I hope that helps,


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Happy to help!

LaDataWeb Blog

ibarrau
Super User
Super User

Hi. If you want to connect a PowerBI Desktop to a PowerBi Dataset published on Service. Just get data from Power Bi Dataset and don't use AnalysisServices conector with the address powerbi://api.powerbi.... Unless you know what you are doing and you have your reasons, you shouldn't do that.

Connecting a Web instance of Anaysis Services shouldn't need a gateway. Are you sure that's the only source? try checking Data Sources Credentials on the same screen. It might just need to edit credentials in order to work. PowerBi won't recognize the credentials automatically because it's an Analysis Service instance and not a powerbi dataset.

I hope that helps,


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Happy to help!

LaDataWeb Blog

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