Forum Discussion
Connect to data gateway
- Anonymous9 years ago
davishert I assume you installed the On-Premises Data Gateway. Once you have that installed, you need to go to the Power BI Service and under "Settings" (the gear) click on Manage Gateways. This will give you a list of the OPD gateways you have installed and have access to. You can use this example of creating a data source to a SQL Server as an example walkthrough. But essentially you need to create a data source with the connection strings that match exactly to the connection strings in your Desktop file. Then, publish the PBIX file and the gateway will appear as one that you can use under your dataset to refresh.
Anonymous I think that was the explanation I've been looking for for awhile. So if I understand it - your data connection made in Desktop can be made in Service.
In your explanation I noticed you first enabled the data connection in Service - and then published the report from Desktop to Service. Does that order of events matter? ... or can one publish to Service and then make the data connection?
I work for a school district and all of my data comes from one server (SclSrvr). I created a data set from SclSrvr, created my measurements, then published this data set to PowerBI Service (online). Once in PowerBI Service, I opened a data gateway for my data set to SclSrvr. I am pretty sure that this needs to be conducted in this order.
I then created another data set from SclSrvr in PowerBI desktop, created the measurements, and published it to PowerBI Service. Now, back in PowerBI Service, all I had to do was link my new data set with the already established data gateway.
Initially I had a problem linking my new data set to the SclSrver via the data gateway because one of my tables in my new data set was not from SclSrvr. PowerBI won't do that. You can link tables from different data sources in PowerBI desktop, but not in PowerBI Service so if your ultimate goal is to bring it to PowerBI Service then that is an important constraint to keep in mind.