![Page 1: Using a gateway to leverage on premises data in Power BI](https://reader034.vdocuments.net/reader034/viewer/2022042908/58f202fc1a28abb0578b45e7/html5/thumbnails/1.jpg)
Using a Gateway to Leverage On-Premises Data in Power BIAdam SaxtonSr. Content Developer@GuyInACube
Adam Saxton
![Page 2: Using a gateway to leverage on premises data in Power BI](https://reader034.vdocuments.net/reader034/viewer/2022042908/58f202fc1a28abb0578b45e7/html5/thumbnails/2.jpg)
Adam Saxton
@guyinacube /guyinacube/guyinacube
I write stuff and create
videos…
![Page 3: Using a gateway to leverage on premises data in Power BI](https://reader034.vdocuments.net/reader034/viewer/2022042908/58f202fc1a28abb0578b45e7/html5/thumbnails/3.jpg)
Starting with Power BI Desktop
![Page 4: Using a gateway to leverage on premises data in Power BI](https://reader034.vdocuments.net/reader034/viewer/2022042908/58f202fc1a28abb0578b45e7/html5/thumbnails/4.jpg)
SQL Server Analysis Services
Live Power BI reports &
dashboards
Live query
Cloud
On-premises
Data Source
Data Source
Direct query
Scheduled refresh
Getting data into PBI DesktopThree options:• Import• DirectQuery• Live connections (SSAS only)
Data pulled into PBI Desktop
Data is streamed from
source
![Page 5: Using a gateway to leverage on premises data in Power BI](https://reader034.vdocuments.net/reader034/viewer/2022042908/58f202fc1a28abb0578b45e7/html5/thumbnails/5.jpg)
Supported import sourcesSupported cloud sources:• SaaS sources • Azure – SQL, DW, Blob, Table, HDInsight, Marketplace• SharePoint, web sources, Odata• OneDrive
Supported on-prem sources:• SQL Server, Teradata, Oracle, DB2, MySQL, PostgreSQL, SAP BW, SAP HANA • Sybase, Access, Custom SQL, Custom ODBC Drivers• SQL Server Analysis Services• Files/folder, SharePoint on-premises
More added
regularly!
![Page 6: Using a gateway to leverage on premises data in Power BI](https://reader034.vdocuments.net/reader034/viewer/2022042908/58f202fc1a28abb0578b45e7/html5/thumbnails/6.jpg)
What this looks like…
![Page 7: Using a gateway to leverage on premises data in Power BI](https://reader034.vdocuments.net/reader034/viewer/2022042908/58f202fc1a28abb0578b45e7/html5/thumbnails/7.jpg)
File location and freshness
![Page 8: Using a gateway to leverage on premises data in Power BI](https://reader034.vdocuments.net/reader034/viewer/2022042908/58f202fc1a28abb0578b45e7/html5/thumbnails/8.jpg)
File locations
Files from your
computerFiles in
the cloud
![Page 9: Using a gateway to leverage on premises data in Power BI](https://reader034.vdocuments.net/reader034/viewer/2022042908/58f202fc1a28abb0578b45e7/html5/thumbnails/9.jpg)
What location means…Local Files:• Only copy the model to the cloud• Local files is never updated or pulled from
Files in the cloud:• Model is copied to Azure BI backend• Poll original file for updates• Refresh will update model and original file
About
hourly
![Page 10: Using a gateway to leverage on premises data in Power BI](https://reader034.vdocuments.net/reader034/viewer/2022042908/58f202fc1a28abb0578b45e7/html5/thumbnails/10.jpg)
Refresh & Gateways
![Page 11: Using a gateway to leverage on premises data in Power BI](https://reader034.vdocuments.net/reader034/viewer/2022042908/58f202fc1a28abb0578b45e7/html5/thumbnails/11.jpg)
How do you want to refresh data?Import (cached mode) DirectQuery or Live connection
Refresh frequency
Scheduled - hourly or daily Real-time
Performance No noticeable delay since data is already cached
Depends on how fast the data source is as queries are executed in real-time
Data storage in Power BI
Since it is cached mode, data is stored in the cloud
No data is stored in Power BI. Data is always on-premises*
Data size Current limit of 1GB (compressed) per model
The on-premises database is the limit; no Power BI limitation
Row level security
No support for on-prem row level security. Supports Cloud RLS.
Re-use on-prem role based row level security for Analysis Services. Non-SSAS supports Cloud RLS.
*Some data is cached for optimizing first-time load performance
![Page 12: Using a gateway to leverage on premises data in Power BI](https://reader034.vdocuments.net/reader034/viewer/2022042908/58f202fc1a28abb0578b45e7/html5/thumbnails/12.jpg)
Power BI Gateway - Personal
Self-service refresh – no IT dependencyEasy & simple to use: Lightweight one-click installer running on your computerOne Personal Gateway per userRuns either as a service or an app
![Page 13: Using a gateway to leverage on premises data in Power BI](https://reader034.vdocuments.net/reader034/viewer/2022042908/58f202fc1a28abb0578b45e7/html5/thumbnails/13.jpg)
On-premises Data GatewayCentralized way to refresh on-premises content in Power BI and other services Access control to data sourcesMonitor and track usageLive, interactive query with on-premises data sources
![Page 14: Using a gateway to leverage on premises data in Power BI](https://reader034.vdocuments.net/reader034/viewer/2022042908/58f202fc1a28abb0578b45e7/html5/thumbnails/14.jpg)
Personal Gateway On-premises data gateway (Enterprise gateway)
Target Persona
Business analyst sets up and uses the gateway for her data sources
• BI Admins set up the gateway for their department/ company
• Multiple users use the gateway setup by the admins
Usage Directly by analysts BI AdminFeatures Import with scheduled refresh Direct query and scheduled refresh
Data source connections managed per user
Central data source mgmt. and access control
No central monitoring/control Central monitoring and controlServices supported
Power BI Power BI, PowerApps, Microsoft Flow, Azure Logic Apps and Azure Analysis Services
Personal v/s On-premises data gateway
![Page 15: Using a gateway to leverage on premises data in Power BI](https://reader034.vdocuments.net/reader034/viewer/2022042908/58f202fc1a28abb0578b45e7/html5/thumbnails/15.jpg)
Data gateway and Analysis Services• Gateway Service Account needs to be Admin on AS Instance• Org Account sent via Effective User Name connection property
• Email address• Email address has to match UPN for account in local domain
• May need to use Azure AD DirSync or can use alternate UPN Suffix
![Page 16: Using a gateway to leverage on premises data in Power BI](https://reader034.vdocuments.net/reader034/viewer/2022042908/58f202fc1a28abb0578b45e7/html5/thumbnails/16.jpg)
Gateway service
How this works…
Cloud
DB
On-premises
1. Install & configure gateway2. Create a data source or
schedule refresh3. Interact with report, schedule
refresh or refresh now4. Gateway Service pushes to
Service Bus5. Gateway polls bus looking for
requests6. Gateway takes request and
decrypts creds7. Gateway connects and runs
query8. Gateway sends results back up
stack
Power BIScheduler
Service creds
![Page 17: Using a gateway to leverage on premises data in Power BI](https://reader034.vdocuments.net/reader034/viewer/2022042908/58f202fc1a28abb0578b45e7/html5/thumbnails/17.jpg)
Troubleshooting
![Page 18: Using a gateway to leverage on premises data in Power BI](https://reader034.vdocuments.net/reader034/viewer/2022042908/58f202fc1a28abb0578b45e7/html5/thumbnails/18.jpg)
FirewallOutbound connection from gateway to Azure Service Bus
Outbound Ports:• 443• 5671, 5672• 9350-9354
![Page 19: Using a gateway to leverage on premises data in Power BI](https://reader034.vdocuments.net/reader034/viewer/2022042908/58f202fc1a28abb0578b45e7/html5/thumbnails/19.jpg)
Tools of the trade• Make sure on latest version of the gateway• Refresh history• Event Logs• Trace logs for gateway• Performance Counters• Proxy configuration• Fiddler• Troubleshooting articles
![Page 21: Using a gateway to leverage on premises data in Power BI](https://reader034.vdocuments.net/reader034/viewer/2022042908/58f202fc1a28abb0578b45e7/html5/thumbnails/21.jpg)
© 2014 Microsoft Corporation. All rights reserved.