Power Query to automate & transform any data
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
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
In Excel: Data, Get Data, From Database, From SQL Server Database. Paste the server and database names
Choose Database credentials and enter the login
In the Navigator, tick the views you need. Start with the consolidated views and the Account Transactions view, not the raw tables
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.