Business Central is, in my experience, one of the easier systems to get a cost model out of, and that is worth saying up front because the companies that run it often assume the opposite. The ledger is clean, the dimension model is more flexible than what most larger systems offer, and almost everything can be opened in Excel from the list it lives on. The mistake people make is in the other direction: they export too much, forty columns from every table they can find, and then spend three weeks discovering that the model only needed a dozen fields from three of them. This is the list of the twelve, where they come from, and what to check before the first calculation runs.
What is the minimum export from Dynamics 365 Business Central for a TDABC model?
Three tables and about a dozen fields. From the general ledger entries: posting date, G/L account number, amount, the two global dimension codes, the dimension set ID and the document number. From the dimension values: dimension code, value code and name. From the chart of accounts: number, name, income or balance type and account category. That gives you the resource side. Add sales invoice lines and item ledger entries, with customer, item, quantity and posting date, when the drivers also come from Business Central. Everything else, including the cost accounting module’s own cost entries, is optional for a first model.
How dimensions work, in the two sentences that matter
Business Central attaches dimensions to every posted entry rather than to the account, and it stores the first two, the global dimensions, as columns directly on the entry. Any further dimensions live in a dimension set, identified by a dimension set ID on the entry, which expands into one row per dimension code and value. In most companies I meet, global dimension 1 is the department or cost centre and global dimension 2 is a project, customer group or business line, and a handful of shortcut dimensions carry things like region or product family. The practical consequence is that the cost centre you want is usually already a column on the ledger entry, and the dimension set only matters if the pool definition needs a third dimension.
A cost centre in Business Central is therefore normally a dimension value, not a master record of its own, unless the company has switched on the cost accounting module, which keeps its own cost centres, cost objects and cost entries derived from the ledger. If that module is in use and maintained, its cost centre table is a fine source; if it was switched on once and left, which happens, trust the dimension values instead.
The three exports and their minimum fields
| Table | Fields to take | What the model uses them for |
|---|---|---|
| General ledger entries | Entry number, posting date, G/L account number, amount, global dimension 1 code, global dimension 2 code, dimension set ID, document number | Resource pool cost by period; entry number and document number for tracing a figure back |
| Dimension values | Dimension code, value code, name, dimension value type, totalling | Turning codes into readable pool names; spotting headings and totals that must not receive cost |
| Chart of accounts (G/L accounts) | Number, name, income or balance, account category, account subcategory | Keeping only expense accounts; grouping salaries, depreciation and external services |
| Sales invoice lines (optional) | Document number, posting date, sell-to and ship-to customer, item number, quantity, line amount, line type | Order and invoice line counts per customer; the order desk and invoicing drivers |
| Item ledger entries (optional) | Entry type, posting date, item number, location code, quantity, document number, source number | Picks, receipts and transfers per customer or item; the warehouse drivers |
Twelve fields from the first three tables cover most first models. I would resist adding the description, the user ID, the source code and the reason code on the first pass; they are useful for tracing later and they triple the file size now. Add a field when a question needs it, not because it is there.
Getting them out: four routes, in order of how little they need from IT
The first route is the list page itself. Open the general ledger entries, filter to the period and the expense accounts, and use the open-in-Excel action. For a few tens of thousands of entries a month this is enough, and for a first model it is what I would use, because it needs no permissions beyond the ones the controller already has. The second route is a web service: most versions let an administrator publish a page as an OData feed, which Excel and Power Query can read directly, with the filters applied at the source rather than after download. The third is the standard API, which in current versions exposes general ledger entries, accounts, dimensions, customers, items and sales documents as endpoints, and is the right answer once the extract has to run every month without a person clicking. The fourth is a configuration package, which exports a table to Excel with its field list, and is the route I use when a table is not on any page.
Whichever route, the output should be the same twelve columns, so that the model does not care where the file came from. The Power Query article covers what happens to the file once it arrives.
The dimension set: expand it once, then forget it
If the pools are defined by the two global dimensions, skip this section; the codes are already on the entry. If a third dimension is needed, export the dimension set entries, which give one row per set ID and dimension code, filter to the dimension you want, and join on the set ID. Do it once, in the extraction layer, and store the result as a column on the entry, so that nobody downstream needs to understand dimension sets. The one trap is entries with a blank set ID, which happens on older or migrated data; treat those as an explicit “unassigned” value rather than dropping them, because dropped cost is cost the reconciliation will not find.
From cost centres to resource pools
The map from dimension values to pools is a short table, and I would build it with the finance team in an hour rather than infer it. A typical distribution business with fifteen department codes ends up with six to eight pools: sales and account management, order desk, warehouse, dispatch and transport, customer service, credit control, and one or two support pools. Filter the ledger to income statement accounts with an expense category, exclude the cost of goods sold accounts, and leave depreciation in, because a forklift’s capacity is as real as a picker’s. Revenue, taxes and financial items stay out.
The dimension values table has a value type field that distinguishes standard values from headings, totals and begin-total or end-total lines. Only standard values should carry cost; a posting against a heading is a data quality problem, and the export will show you how many there are.
Drivers from Business Central
Whether the drivers come from Business Central or from a separate warehouse or transport system depends on where the work is recorded. For the order desk and invoicing, the sales invoice lines and, where the company keeps them, the posted sales shipment lines are usually enough: orders per customer, lines per order, and the share of orders that were changed or partially shipped. For the warehouse, the item ledger entries carry every stock movement with its type, and if the warehouse module is active, the warehouse entries carry picks and put-aways by bin and by user. For collections, the customer ledger entries and the detailed entries behind them show payments, reminders and the days each invoice stayed open. The cost driver library lists which of these move which pool.
What Business Central will not give you is time. It records that an order was entered, not that it took eleven minutes. The time comes from the equation, and the equation comes from observation or from a log; the article on measuring activity times covers the ways to get it without watching people.
The checks before the model runs
- The sum of the exported ledger entries per account and period equals the trial balance for the same filter. If it does not, the filter changed between the two, and it is quicker to redo the export than to hunt for the difference.
- Every cost centre code in the ledger appears in the pool map. The unmapped ones should stop the run, not be silently pooled into “other”.
- No cost is posted against dimension values of heading or total type.
- Reversed and corrected entries net to zero within the period; a reversal that lands in the next month is a legitimate difference and belongs on the written list.
- The drivers cover the same period as the cost, by posting date on both sides. A model with March cost and February orders will not tie and will not tell you why.
Twelve fields from three tables. If the export needs more than that on the first pass, the question has changed and it is worth saying which one.
What I have simplified
Field names differ between versions and localisations, the standard API changes what it exposes from release to release, and a company that has customised Business Central heavily may keep the cost centre somewhere I have not described. I have written the shape I meet most often. If your setup differs, the three-table logic holds and the labels change; a controller who knows the system will find the equivalents in an afternoon, and if you would rather send me the field list before exporting anything, that is usually faster than a wrong export.
Related reading: the cost model data extract, the data a TDABC model needs, when Excel starts hurting the model and reconciling to the ledger to the cent.
