dataSights

Power Query to automate & transform any data

Last updated

The first connection from Excel is the step most people find fiddly, and it is a one-off. After this, everything is Refresh All and Recent Sources.

Connect once

  1. In the platform, open Xero Consolidation, Excel & BI, Excel Power Query (data-syncing customers: Data Engineering, 1. Database). Click to add your current IP address, then copy the server name, database name and database login

  2. In Excel: Data, Get Data, From Database, From SQL Server Database. Paste the server and database names

  3. Choose Database credentials and enter the login

  4. In the Navigator, tick the views you need. Start with the consolidated views and the Account Transactions view, not the raw tables

  5. Click Transform Data rather than Load, and filter to the period and columns the workbook needs before loading. This is what keeps refresh fast and Excel under its row limit

From then on

  • Data, Refresh All: everything updates

  • Data, Recent Sources: the quickest way to pull down a different table or view, without re-entering the server

  • Data, Queries & Connections, then right-click a query and choose Edit: reopens Power Query for that table, to change a filter, add a column or adjust the shaping

Transform in Power Query or in the database?

Power Query is fine for light shaping and it is how most people start. When the queries multiply or the refresh slows, move the logic up into SQL views and let the workbook load finished tables. Excel Power Query → SQL for scalable reporting covers the move; Refresh effectively in Excel covers the habits.

dataSights

Try dataSights free

See how dataSights automates your Xero consolidation and reporting. Start your 14-day free trial, no credit card required.

Start for free