Spend Cube: How to Build One and Questions It Answers

A spend cube organises spend by category, supplier and business unit so you can slice it any way. See how to build one, what to measure and the traps to avoid.

7 min read

Inside the spend cube

A spend cube is a data model that arranges all your company's spend along three main dimensions: what you buy (category), who you buy from (supplier) and who buys it (business unit or cost centre), usually with time as a fourth. Each cell holds the spend for one combination, so you can slice, filter and drill into spend from any angle without rebuilding the report.

  • Three axes, one question per angle. Category, supplier and business unit answer what, from whom and for whom.
  • It is built on cleaned, classified data. The cube is only as good as the spend analysis underneath it.
  • Hierarchies make it usable. Each dimension rolls up and drills down: item to category family, site to region, supplier to parent group.
  • Measures go beyond amount. Quantity, PO count, supplier count and average unit price reveal more than spend alone.
  • A good cube answers new questions without IT. If every new view needs a data request, it is a report, not a cube.

What are the dimensions of a spend cube?

A spend cube has three core dimensions: category, supplier and business unit, with time as a common fourth. Picture a cube. One edge lists your categories, another your suppliers, the third your business units. Every small block inside is the spend for one category, with one supplier, by one business unit. Add time and you can see how that block changes month by month.

DimensionQuestion it answersTypical hierarchy
CategoryWhat do we buy?Category family, category, sub-category, item
SupplierWho do we buy from?Parent group, supplier, supplier site
Business unitWho buys it?Company, division, site, cost centre
TimeWhen did we buy it?Year, quarter, month

Most teams add a few more dimensions once the core works: region, currency, contract (on or off contract), payment terms and the sourcing event that set the price. Each new dimension multiplies the number of views, so add one only when someone has a question that needs it.

What can you measure in each cell?

Spend amount is the default measure, but it is rarely enough to decide anything. Store several measures for every cell:

MeasureWhat it tells you
Spend amountMoney paid, in one reporting currency
QuantityUnits bought, where the unit of measure is consistent
Average unit priceSpend divided by quantity; the basis for price comparison
Number of POs and invoicesTransaction load; many small POs point to process cost
Number of suppliersFragmentation of a category or business unit
Share on contractHow much of the cell is bought at contracted prices

What questions does a spend cube answer?

The value of the cube is that each question is just a different cut of the same data. A few examples, and the dimensions each one uses:

QuestionDimensions usedWhat you do with the answer
Which suppliers do we use for corrugated boxes, and at what share?Category, supplierConsolidate and run an RFQ
Which sites buy IT hardware outside the framework contract?Category, business unit, contractFix the requisition path for those sites
Is the same supplier charging our sites different prices?Supplier, business unit, item, average unit priceAlign to one contract price
How has freight spend moved by quarter this year?Category, timeCheck against volume and fuel index
Which categories have more than ten suppliers each?Category, supplier countPrioritise for consolidation
How much do we spend in a foreign currency?Currency, category, supplierPlan currency terms in the next negotiation

How do you slice, dice and drill a spend cube?

Five operations cover almost everything you will do with a cube:

  • Slice: fix one dimension to a single value. All spend in the packaging category, for example.
  • Dice: fix several dimensions to a subset. Packaging and labels, at the two northern plants, in the last two quarters.
  • Drill down: move from a total to the level below. From packaging to corrugated boxes to one item code.
  • Roll up: move the other way. From supplier sites to the parent group, to see your real exposure to one company.
  • Pivot: swap the rows and columns. Suppliers by site instead of sites by supplier.
A spend cube view showing packaging spend for four suppliers across two plants.
One dice of the cube: packaging, by supplier and site. The same data answers the next question with a different cut.

How do you build a spend cube step by step?

  1. Run the spend analysis first. Extract, cleanse and classify invoice and PO data. Our guide to spend analysis covers this.
  2. Build one fact table. One row per invoice or PO line, with amount, quantity, date and keys to each dimension.
  3. Build the dimension tables. A category tree, a supplier table with parent groups, a business unit tree and a calendar. Each with its hierarchy levels.
  4. Map every fact row to every dimension. Lines with no category or no business unit go to an explicit "unclassified" member, never dropped.
  5. Reconcile the total. The cube total must match the ledger for the same period and entities. Show any difference with its reason.
  6. Define the measures. Spend, quantity, average price, counts. Write down how each is calculated.
  7. Choose the tool. A pivot table, a BI tool or a procurement analytics module, depending on data size and refresh needs.
  8. Set the refresh. Monthly at minimum. New suppliers and unclassified lines get reviewed each time.

The quality of the category tree decides the quality of the cube. Our article on spend classification covers how to design it.

Six steps to build a spend cube, from clean data to a monthly refresh.
Reconcile the cube total with the ledger before anyone uses it. A cube finance does not trust will not be used.

What goes wrong with spend cubes?

ProblemCauseFix
Large unclassified shareFree-text lines and GL accounts that are too broadClassification rules by supplier and item code; review the remainder monthly
Same supplier counted as manyNo parent group in the supplier dimensionGroup by tax ID and add a parent level
Average price makes no senseMixed units of measure in one cellNormalise units before loading; exclude lines without a unit
Totals do not match financeDifferent period cut-off, missing entities, credit notes excludedReconcile every refresh and document the gaps
Nobody uses itBuilt for analysts, not for category managersGive each category manager a saved view of their own categories
Too many dimensionsEvery possible field added at the startStart with the core four and add on request

Spend cube or dashboard: which do you need?

They do different jobs. A dashboard shows a fixed set of numbers that leadership reviews every month: total spend, savings, top suppliers. A cube is the data underneath that lets an analyst or category manager ask the next question. Most teams need both: a few stable dashboards fed by one cube. If your dashboard cannot be clicked into, you have the first without the second. The design of the monthly view is covered in our article on the procurement dashboard.

How does the spend cube work in Teradix?

In Teradix Spend Analytics, the spend cube is pre-modelled across category, supplier, business unit, region, currency, contract, source event and time. Requisitions, sourcing events, contracts and POs from Teradix map to the same dimensions as they arrive, and ERP data comes in through the Integration Platform while your ERP stays the system of record. You click a total to drill in, pivot without SQL, and trace any line back to its requisition, event, contract or PO. Reports export to PDF, Excel or CSV. Teams answer an ad-hoc spend question in 30 seconds.

Frequently asked questions

Is a spend cube the same as a pivot table?

A pivot table is one way to view a spend cube, and for a small dataset it may be enough. A full cube adds stable hierarchies, cleansed supplier groups, several measures and a regular refresh, so that the same structure serves every user and every month without being rebuilt.

How many dimensions should a spend cube have?

Start with four: category, supplier, business unit and time. Add region, currency, contract status or source event only when someone has a recurring question that needs them. Each extra dimension adds maintenance and makes the cube harder for occasional users to read.

What share of spend should be classified before the cube is useful?

There is no fixed threshold, but the largest categories and suppliers must be classified correctly before anyone acts on the numbers. Show the unclassified share openly in every view, and reduce it each month by adding rules for the biggest unclassified suppliers first.

Who maintains the spend cube?

One owner, usually a procurement analyst or excellence team, maintains the category tree, supplier groups and refresh. Category managers review their own categories and flag misclassified lines. Finance checks that the total reconciles with the ledger after each refresh.