How to connect ERP data to Power BI without a data team
The hard part of a Power BI report is getting ERP data into it reliably. Choose between a scheduled export, a direct connection or a small database, build a four-table model, and reconcile it with the ERP before anyone uses it.
Every Monday someone in your company exports invoices from the ERP, pastes them into a spreadsheet, fixes the same columns and sends a report that is out of date by Tuesday. Power BI looks like the obvious way out, but the hard part is not the dashboard: it is getting ERP data into it reliably. This guide shows how to connect ERP data to Power BI without a data team: which of three connection routes fits your situation, how to build the first model, and the one check that tells you whether the numbers can be trusted before anyone makes a decision with them.
The real decision: how the data gets out of the ERP
An ERP (enterprise resource planning system: the software that holds your orders, invoices, stock and customers) was built to run operations, not to feed reports. Before choosing visuals, decide how data will leave it. There are three realistic routes for an SME.
Route 1: a scheduled export to a shared folder
Most ERPs can export a report or a table to CSV or Excel, and many can do it on a schedule. You save the export to a SharePoint or OneDrive folder, and Power BI reads every file in that folder.
- Good for: older or on-premises ERPs with no API, a first project, one or two tables (invoice lines, customers).
- Watch out for: someone changing the export layout, a renamed column, or the scheduled export silently stopping. Files in SharePoint or OneDrive are cloud sources, so the Power BI service can refresh them without extra software.
Route 2: a direct connection to the ERP
Some ERPs have a ready-made Power BI connector or an API (an interface that lets other software request data). Others store their data in a database such as SQL Server that Power BI can read directly. If that database sits on a server in your office, Power BI needs an on-premises data gateway: a small program installed on a machine in your network that passes data securely to the Power BI service when it refreshes.
- Good for: cloud ERPs with a connector, or a stable database you are allowed to read.
- Watch out for: ERP tables designed for software, not people. An invoice may be spread across five tables with cryptic names, and reading the wrong one gives plausible but wrong totals. Ask your ERP provider or integrator which tables or views are safe to read, and whether direct reads are allowed under your contract.
Route 3: a small intermediate database
Data is copied each night from the ERP (and perhaps your CRM or accounting tool) into a small database, cleaned there, and Power BI reads only that database.
- Good for: several sources to combine, history the ERP does not keep, more than a handful of users.
- Watch out for: this is a real piece of infrastructure. Someone must own it, monitor it and fix it when a nightly copy fails.
A simple decision rule
Start with the simplest route that gives you the tables you need at the frequency you need.
| Your situation | Start with |
|---|---|
| One ERP, weekly or daily figures are enough, no API | Route 1: scheduled export |
| Cloud ERP with a Power BI connector or API | Route 2: direct connection |
| On-premises ERP database you may read | Route 2, with a gateway |
| Three or more sources, or history the ERP overwrites | Route 3: intermediate database |
In practice, many SMEs can start with Route 1 or Route 2 and only move to Route 3 when a second or third source has to be combined.
Is it worth automating? Count the hours first
Automation has a cost: someone must build it, test it and keep it working. Compare that with what the manual report costs today.
For example, imagine a distributor with 40 employees. Its finance assistant spends about 3 hours a week rebuilding the sales report, roughly 13 hours a month. Building a Power BI report on a scheduled export takes, in this example, 40 hours of set-up, then about 2 hours a month to check refreshes and handle small changes.

In this illustrative case, the automated report catches up with the manual one after a little less than four months (40 + 2 × 3.6 ≈ 13 × 3.6), and the gap widens after that. Redo the calculation with your own figures: if the manual report takes 30 minutes a week, or the ERP changes often, the break-even point may be more than a year away, and a tidier spreadsheet may be the better decision.
Time is not the only gain. A report that refreshes on its own does not depend on one person being in the office, and it removes copy-paste errors. But do not count those benefits twice in the calculation: keep the hours honest and note the rest separately.
Build the first model in Power Query, step by step
Power Query is the data-preparation tool built into Power BI Desktop (and into Excel). It records each cleaning step, so the same steps are replayed automatically at every refresh. That is what replaces the Monday copy-paste.
Step 1: choose the grain
The grain is what one row represents. For a sales report, the natural grain is one invoice line: one product, on one invoice, for one customer, on one date. Decide this before importing anything, and check that your export really has one row per invoice line, not one row per invoice with products squeezed into a text column.
Step 2: separate facts from descriptions
Microsoft recommends organising Power BI models as a star schema: one central table of events or transactions (the fact table, here invoice lines with quantities and amounts) linked to tables that describe them (dimension tables: customers, products, dates). In practice that means three or four tables instead of one huge sheet:
- Invoice lines: invoice number, date, customer code, product code, quantity, net amount, cost.
- Customers: customer code, name, region, sales rep.
- Products: product code, name, family.
- Dates: one row per day, with month, quarter and financial year.
Keeping descriptions out of the fact table means a customer's region is stored once. When it changes, it changes everywhere.
Step 3: clean once, in the query
Do the fixes you currently make by hand as Power Query steps: remove the total rows at the bottom of the export, set number and date types, trim spaces in customer codes, and make credit notes negative if the ERP exports them as positive amounts. Rename columns to plain names that a manager understands.
Step 4: schedule the refresh
Publish the report to the Power BI service and set a scheduled refresh. Schedule it after the ERP export has run, not at the same time. The number of refreshes allowed per day depends on your licence; check the current limits in Microsoft's data refresh documentation before promising anyone hourly figures. For most management reports, one refresh early in the morning is enough.
Turn on failure notifications and decide who receives them. A refresh that fails quietly is worse than a manual report, because people keep trusting yesterday's numbers.
The check that matters: reconcile with the ERP
Before anyone uses the report, compare one total with the ERP's own figure. Pick a number finance already trusts, such as net sales by month from the ERP's standard sales report, and put it next to the same number in Power BI for the last six to twelve months.
The gap should be zero, or explained to the euro. A gap of a few percent that repeats every month points to a systematic problem, not to rounding.

In this illustrative example, the first version of the model is 1.8 to 3.4% above the ERP every month. The cause is common: credit notes were exported in a separate file that the query did not read. Once they are added as negative lines, the gap falls to almost zero, and the small remaining differences are traced to invoices posted after the export ran.
Typical causes of a gap:
- credit notes, returns or cancelled invoices missing or counted with the wrong sign;
- net and gross amounts mixed, or delivery charges included on one side only;
- invoice date on one side, order or delivery date on the other;
- a filter left in the export (one site, one sales rep, active customers only);
- duplicate rows when two export files overlap by a few days.
Keep the reconciliation as a page in the report itself: ERP total, Power BI total, difference. Check it after every change to the model, and once a month as a routine.
Common pitfalls
Starting with too many tables. A first version with invoice lines, customers, products and dates answers most sales questions. Stock, purchases and open orders can come later, each with its own reconciliation.
Building the report on one person's laptop. If the Power BI file, the gateway or the export depends on one person's computer or login, the report stops when they are on holiday. Use a shared account or service account where your IT allows it, and write down where each piece runs.
Letting the dashboard redefine the KPIs. If "sales" in Power BI is not the same as "sales" in the monthly accounts, people will argue about numbers instead of decisions. Write one-line definitions on the report: net of credit notes, excluding delivery charges, by invoice date.
Skipping the history. Some ERPs overwrite data, such as a product's cost or a customer's sales rep. If you need last year's view, you must keep copies, which is often the moment Route 3 becomes worth it.
Once the data flows reliably, the analysis that was too laborious by hand becomes possible. A clean table of invoice lines by product and month is the starting point of the method in our article on sales forecasting with limited historical data. One row per customer, refreshed automatically, is the kind of table that a churn model like the one in our bank customer churn project is built on: there, contacting the 20% of customers ranked highest reached 61% of those who later left.
What to do next
- Write down how long the current manual report takes each week, and who depends on it. Do the break-even calculation above with your own numbers.
- Find out which route your ERP allows: scheduled export, Power BI connector or API, or database access. Your ERP provider can answer in one email.
- Define the grain and the four tables (invoice lines, customers, products, dates) and export three months of data to test.
- Build the Power Query steps, then reconcile monthly net sales with the ERP before showing the report to anyone.
- Schedule the refresh after the export, turn on failure alerts, and read more data automation insights before adding the next source.
Sources
- Microsoft Learn, What is an on-premises data gateway?
- Microsoft Learn, Understand star schema and the importance for Power BI
- Microsoft Learn, Configure scheduled refresh
- Microsoft Learn, Data refresh in Power BI
If you would like help choosing the right route for your ERP and building a first model you can trust, discuss your project with us.