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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
vranjan22
Regular Visitor

On Premise Data Gateway - Single database, different username

Hi,

 

I have a on premise data gateway installed on a server which is being used for PowerApps application. I am now creating a PowerBI report from that database(SQL Server Express Edition), however the user account is different from what is being registerd for On Premise data gateway.

 

How can I use it to connect to Power BI reports?

 

Please advise.

 

Thanks,

Vivek

5 REPLIES 5
Seth_C_Bauer
Community Champion
Community Champion

@vranjan22 In Power BI the user account that created the gateway will have access to the gateway there. You can add other admins if necessary, but you will create a datasource on the gateway using the credentials specific to the SQL DB. Then you can apply users to the datasource who have access to use it when publishing reports. 

 


Looking for more Power BI tips, tricks & tools? Check out PowerBI.tips the site I co-own with Mike Carlo. Also, if you are near SE WI? Join our PUG Milwaukee Brew City PUG

Thank you @Seth_C_Bauer for your response.

 

I am quite new to Power BI & Power Apps, hence I may not understand all the suggestions shared by you.

 

The datatable and the on-premise gateway are configured on a server. The datatable is getting updated using PowerApps which is connected through the on-premise gateway. The ID used for PowerApps & gateway is same.

 

Now, I am creating a PowerBI report for the datatable. I have used PowerBI desktop for connecting to SQL datatable & designing the report. While publishing, I am using a different account. At present, in order to refresh the PowerBI report, I doing following steps:

Open report in PBI desktop > Refresh data table > Save & Publish the report

 

I am looking for skipping the steps above. The PowerBI reports should automatically get refresh at regular intervals.

 

Please advise.

 

Thanks,

Vivek

@vranjan22 The gateway is the same for Apps and Power BI. An admin of the gateway can see the gateway you stood up in both applications. In Apps, you created a connection, in Power BI you will most likely need to create a datasource for the same SQL DB. This can be done in Power BI. The admin, would then assign you as a user of the data source so that when you publish the report, you would see that a gateway is available on the dataset for you to schedule a refresh of the report.

This article walks through the data source creation, just ignore the download of the gateway portion because you already have one.

https://docs.microsoft.com/en-us/power-bi/service-gateway-enterprise-manage-sql


Looking for more Power BI tips, tricks & tools? Check out PowerBI.tips the site I co-own with Mike Carlo. Also, if you are near SE WI? Join our PUG Milwaukee Brew City PUG

Hi @Seth_C_Bauer

 

 

I followed the steps mentioned in the link shared by you along with I assigned the Admin access to the id using which I am creating PowerBI report:

 

 

 

Gateway.jpg

 

While adding the data source to the gateway, I am getting the error:

 

On Premise Gateway Setting.jpgError Detail.jpg

 

The user I have created on SQL server and I am using that credential to connect, but unable to do so.

 

Please advise.

 

Thanks,

Vivek

 

 

Anonymous
Not applicable

@vranjan22,

Do you use the same user account and credential to connect to SQL in Power BI Desktop and gateway? If so, are you able to connect to SQL Server from SQL Server Management Studio(SSMS) with this user? Please makke sure SSMS is installed in the same machine with gateway.

Regards,
Lydia

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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.