Connecting Power BI
In this article, we will walk through the process of connecting Microsoft Power BI to DataHub. To make it more illustrative, we will also build a dashboard that connects to the analytical database and monitors the real-time status of vehicles, all using Microsoft Power BI.
Dashboard features
Display total number of vehicles
Visualize vehicle movement statuses (moving/stopped/parked)
Visualize connection statuses (active/idle/offline)
Detailed table with current status of all vehicles
Filtering by vehicle type, group, movement status, and connection status
Data and report export capabilities
Technical requirements
Windows 10/11 or Windows Server 2016+
Microsoft Power BI Desktop (current version)
Microsoft account for Power BI Service access (optional)
Minimum 4 GB RAM (8 GB recommended)
Internet access for database connection
Installation and setup
1. Install Power BI Desktop
Download Power BI Desktop from the official Microsoft website: https://powerbi.microsoft.com/desktop/
Run the installer and follow its instructions.
2. Download the dashboard file
Download the moving_status_dashboard.pbix file from the bi-intergrations repository ->
power_bi. You can clone the whole repository for further interactions:Open the downloaded
moving_status_dashboard.pbixfile by double-clicking or through the Power BI Desktop menu: File → Open.
Database connection
1. Update connection parameters
After opening the dashboard file, go to Transform data → Edit parameters.
Update the following parameters:
DB_HOST- database server addressDB_NAME- database nameDB_USER- usernameDB_PASS- password (do not save files with real credentials in shared access)DB_PORT- connection port (default 5432)
Click OK and apply the changes.
Connection parameter reference
Host
DB_HOST parameter
The database server address provided in your welcome email
Port
DB_PORT parameter
Default is 5432 for PostgreSQL
Database name
DB_NAME parameter
Your assigned database name
Username
DB_USER parameter
Your database username
Password
DB_PASS parameter
Your secure database password
SSL mode
Connection Settings
Set to require in the Options dialog
Schema
Query Editor
Specify schema (raw_business_data or raw_telematics_data) in each query
2. Configure credentials
When connecting for the first time, Power BI will ask for database access credentials.
Select Database account and password as the authentication type.
Enter the credentials provided by your administrator.
Set privacy level to Organization or Private.
Using the dashboard
After setting up the connection, you can:
Refresh data - click the Refresh button on the ribbon or use the keyboard shortcut Ctrl+R.
Use filters - apply filters on the right panel or directly on report elements:
Filter by vehicle type
Filter by groups
Filter by movement/connection status
Drill down into data - click on visualization elements to view detailed information.
Create bookmarks - save specific filter settings and views for quick access.
Data refresh configuration
Local refresh
In Power BI Desktop, open the menu Home → Refresh.
To set up regular refreshes through Power BI Service, publish the report to the Power BI Service.
Cloud refresh (Power BI Service)
(Optional) Publish the dashboard to Power BI Service using the Publish button in Power BI Desktop.
In the Power BI Service, go to dataset settings.
In the Scheduled refresh section, configure the refresh frequency.
To connect to a local or private database, you'll need to install and configure the Power BI Gateway.
Troubleshooting
Database connection issues
Connection error: Check the correctness of credentials and connection parameters.
Firewall error: Ensure your IP address is added to the allowlist for database access.
Gateway issues: When using Power BI Gateway, check the status of the gateway service.
Performance issues
Slow visualization loading:
Reduce the number of simultaneously displayed elements
Check Import/DirectQuery mode in the data model
High memory usage:
Reduce the amount of imported data by applying filters at the query level
Remove unnecessary columns from the data model
Other issues
Here are some tricks that can help you fix common issues:
Reopen Power BI Desktop and the dashboard file
Check for Power BI Desktop updates
Reinstall Power BI Desktop if necessary
Clear the Power BI cache: File → Options → Global → Clear items from cache
Next steps
After successfully connecting Power BI to your Private Telematics Lakehouse instance, we recommend you to:
Explore the available data schemas by reviewing the Schema overview section to better understand the data structure and relationships.
Start with simple queries focused on specific business entities before building complex dashboards - check our example queries for reference.
Support
For technical questions or requests for access to the demonstration database, please contact: [email protected]
Last updated
Was this helpful?