Power BI
Power BI Desktop can connect to Syntra ODBC using its built-in PostgreSQL connector. This gives you full access to QuickBooks data for building interactive dashboards and reports.
Prerequisites
Section titled “Prerequisites”- Syntra ODBC installed and running
- Power BI Desktop (latest version recommended)
Connecting Power BI
Section titled “Connecting Power BI”Step 1: Get Data
Section titled “Step 1: Get Data”- Open Power BI Desktop.
- Click Get Data on the Home ribbon.
- Search for PostgreSQL and select PostgreSQL database.
- Click Connect.
Step 2: Enter Connection Details
Section titled “Step 2: Enter Connection Details”| Field | Value |
|---|---|
| Server | localhost:5433 |
| Database | quickbooks |
Leave Data Connectivity mode set to Import for best performance.
Step 3: Authenticate
Section titled “Step 3: Authenticate”- Click the Database tab on the left.
- Enter your username (
syntra) and password. - Click Connect.
Step 4: Select Tables
Section titled “Step 4: Select Tables”The Navigator window displays all available QuickBooks tables. Check the tables you want to import, then click Load or Transform Data.
Using DirectQuery vs. Import
Section titled “Using DirectQuery vs. Import”| Mode | Description |
|---|---|
| Import | Data is loaded into Power BI’s in-memory engine. Best for performance and offline use. Refresh on a schedule. |
| DirectQuery | Queries are sent to Syntra on each interaction. Use for near-real-time dashboards, but expect slower visuals. |
For most QuickBooks reporting scenarios, Import mode is recommended. Schedule refreshes in the Power BI Service to keep data current.
Writing Custom SQL
Section titled “Writing Custom SQL”To use a custom query instead of loading entire tables:
- In the Get Data dialog, expand Advanced options.
- Paste your SQL statement:
SELECT c.name, SUM(i.balance_remaining) AS TotalOutstanding, COUNT(*) AS InvoiceCountFROM invoices iJOIN customers c ON i.customer_ref_list_id = c.list_idGROUP BY c.nameORDER BY TotalOutstanding DESC- Click OK to load the query results.
Scheduled Refresh (Power BI Service)
Section titled “Scheduled Refresh (Power BI Service)”To set up automatic data refresh after publishing to the Power BI Service:
- Install the On-premises data gateway on the machine running Syntra.
- Register the gateway in the Power BI Service.
- Configure the data source credentials in the gateway settings.
- Set a refresh schedule on your published dataset.
- Relationships: Power BI can auto-detect relationships between tables using
list_idand*_ref_list_idcolumns. Review them in the Model view. - Date tables: Create a dedicated date table in Power BI for time intelligence calculations rather than relying on QuickBooks date columns.
- Performance: Use Import mode and limit the date range of imported data with WHERE clauses to keep datasets manageable.