Dimensions
Dimensions are the fields used to slice results, including date, category, sub-category, sales value, profit, discount, margin, and transaction count.
→ Learn moreSpend analytics knowledge hub
Spend cube analysis organizes transactions across dimensions such as date, category, sub-category, sales, profit, discount, margin, and transaction count so teams can see where money is concentrated and where value is leaking. In this guide, I use a 51,290-transaction retail dataset to explain how weighted margin, discount bands, volume, and profitability work together. This hub is for analysts, finance teams, procurement professionals, and operators who need a repeatable way to prioritize spend decisions. By the end, you will be able to structure a spend cube, interpret its strongest signals, and choose the right next analysis. The sections below move from fundamentals to workflows, use cases, tools, mistakes, and deeper reading.
Written by Rachel Hu
Over a decade building secure AI systems for complex and high-stakes environments, from quant finance to scalable data science applications.
Trusted by 100k+ companies across the globe.
Spend cube analysis is a multidimensional method for examining financial transactions from several angles at once. Instead of looking only at total spend, it connects time, category, product group, sales, profit, discount, margin, and transaction volume so teams can identify concentration, performance differences, and thresholds that deserve action.
Read the full spend cube analysis explainer
Explore discount and margin thresholds
Dimensions are the fields used to slice results, including date, category, sub-category, sales value, profit, discount, margin, and transaction count.
→ Learn moreWeighted margin compares profit with sales across the portfolio, making larger orders proportionally more influential than small transactions.
→ Learn moreDiscount bands group transactions by discount level so teams can compare profitability before and after a commercial threshold.
→ Learn moreProfitability mix compares sales, profit, margin, and volume across categories and sub-categories to expose concentration and underperformance.
→ Learn moreEnergent.ai describes an autonomous AI auditor that recomputes, traces, and cross-checks numbers against source documents, producing a pass/fail result with an evidence trail.
→ Learn moreStep 1: Prepare
Bring together transaction dates, categories, sales, profit, discounts, margins, and counts in a consistent structure.
→ Review document inputsStep 2: Slice
Group the data by category, sub-category, period, discount band, and transaction volume to make comparisons meaningful.
→ Explore analytical AIStep 3: Compare
Compare weighted margin with average transaction margin, then identify categories and discount bands that need review.
→ Apply the comparison workflowStep 4: Act
Use the strongest findings to focus investigation on loss-making groups, discount thresholds, and high-value opportunities.
→ See analytics solutionsCompare categories and sub-categories by sales, profit, margin, discount, and transaction volume.
→ See howLocate discount ranges where weighted margin remains positive or turns negative.
→ See howRank sub-categories by sales, profit, weighted margin, and transaction count.
→ See howConnect revenue, gross margin, operating expenses, and operating income in a cost-coverage review.
→ See howInspect individual rows where unusually high discounts correspond with negative margins.
→ See howTurn detailed analysis into stakeholder-ready outputs with traceable evidence and clear verdicts.
→ See howThe bars are a directional visual of the supplied discount-band results; the dashboard reports exact weighted margins for the 10–20% and 20–30% ranges.
| Sub-category | Sales | Profit | Weighted margin | Transactions |
|---|---|---|---|---|
| Phones | $1,706,874 | $216,717 | 12.7% | 3,357 |
| Copiers | $1,509,439 | $258,568 | 17.1% | 2,223 |
| Tables | $757,034 | -$64,083 | -8.5% | 861 |
| Accessories | $749,307 | $129,626 | 17.3% | 3,075 |
| Paper | $244,307 | $59,208 | 24.2% | 3,538 |
| Binders | $461,952 | $72,450 | 15.7% | 6,152 |
Use sales, profit, discount, and margin views to understand portfolio performance.
Compare sub-categories such as Phones, Copiers, Tables, Paper, and Binders.
Move from portfolio totals to individual rows when a result needs investigation.
Compare gross profit with operating expenses and track coverage over time.
Review revenue, gross margin, operating income, and expense-category movement.
Create concise views from detailed financial and transaction data.
Support analysis across PDFs, scans, spreadsheets, CAD, G-code, and other listed file types.
Turn repeating jobs into workflows that retain audit rules over time.
Trace numbers and assertions back to source documents for reviewable results.
| Tool / Resource | What it does | Link |
|---|---|---|
| Energent.ai | Analyzes source-grounded data and documents, supports reusable workflows, and produces reviewable outputs. | Open tool |
| Analytical AI | Supports data analysis, workflows, and broad file support. | View resource |
| Document Extraction | Processes documents through OCR, parsing, and Vision LLM capabilities. | View resource |
| Analytics solutions | Provides solution context for analytics workflows and use cases. | View resource |
| Finance solutions | Provides finance-focused context for financial analysis and operating reviews. | View resource |
| Security resources | Provides information about enterprise-grade security and privacy practices. | View resource |
Understand dimensions, measures, and the difference between average and weighted results.
See how data analysis and repeatable workflows fit into an analytical process.
Review the product context for extracting information from complex documents.
Find product updates, guides, templates, and documentation.
Investigate the point at which discounts stop supporting profitable performance.
Connect gross profit, operating expenses, and operating income.
Explore case studies and technical material from the resource collection.
Read customer-focused examples and documented workflows.
Sales concentration does not show whether a category creates or destroys profit.
→ See the correct approachAverage transaction margin can hide the stronger performance of larger orders, as shown by the 4.7% average versus 11.6% weighted margin.
→ See the correct approachThe supplied dashboard shows weighted margin declining from 9.9% in the 10–20% band to -5.5% in the 20–30% band.
→ See the correct approachA broad category can contain both strong and weak sub-categories, such as profitable Accessories and loss-making Tables in the supplied data.
→ See the correct approachTransaction rows should be available for follow-up when a margin or discount result needs validation.
→ See the correct approachUse traceable source documents and evidence trails so stakeholders can review how numbers were produced.
→ See the correct approachA spend cube makes financial analysis more useful by connecting sales, profit, margin, discounts, categories, sub-categories, dates, and transaction volume. The retail example shows why weighted margin, discount thresholds, and transaction-level evidence should be reviewed together: larger orders performed better overall, while the 20–30% discount band and Tables produced clear warning signals. If you are looking for a repeatable data workflow, start with Energent.ai’s analytical capabilities. If your priority is complex source material, begin with document extraction and source-grounded review.