Segment finance · NetSuite TD3016323
Revenue, gross margin, and contribution by location, product class, and department over the trailing twelve months, with the tagging gaps that limit what the segment view can say.
Measured on billed sales, the business has four operating segments by location and they are all profitable at the gross margin line, between 44% and 49%. Below gross margin the picture changes. The Los Angeles distribution center, the largest segment at $623,887 of revenue, keeps $29,377 after the operating expense assigned to it. Miami, the second largest at $393,564, loses $55,480 after its assigned expense: it carries $228,620 of operating cost against $173,140 of gross profit. The two retail stores are small and clean, $38,729 and $26,510 of contribution on almost no assigned cost.
The largest "segment" is the one with no location at all. Delivery service revenue of $682,677, 37% of billed sales, carries no location, no cost of goods, and no expense, and shows as pure contribution. It isn't. It is revenue whose costs are sitting in other segments or in the unassigned pool. Until it is tagged, every segment's contribution is understated by whatever share of that service it actually delivers, and Miami's loss may be partly an artifact of where the delivery cost landed.
Segments: location is the primary dimension, because it is the only one on which revenue, cost of goods, and operating expense are all tagged consistently in this account. Class and department views follow. Materiality: above 10% of revenue is material, 5 to 10% moderate, below 5% immaterial.
| Rank | Segment | Revenue | Share | Cost of goods | Gross profit | Margin | Assigned opex | Contribution | Materiality |
|---|---|---|---|---|---|---|---|---|---|
| 1 | Unassigned (delivery service) | $682,677 | 37.2% | $0 | $682,677 | 100.0% | $500 | $682,177 | Material |
| 2 | 01: San Francisco Store | $83,874 | 4.6% | $43,145 | $40,729 | 48.6% | $2,000 | $38,729 | Immaterial |
| 3 | 03: Los Angeles Distribution Center | $623,887 | 34.0% | $337,181 | $286,706 | 46.0% | $257,329 | $29,377 | Material |
| 4 | 02: New York Store | $53,557 | 2.9% | $27,046 | $26,510 | 49.5% | $0 | $26,510 | Immaterial |
| 5 | 05: Miami | $393,564 | 21.4% | $220,424 | $173,140 | 44.0% | $228,620 | -$55,480 | Material |
Contribution after assigned operating expense, by location. Blue positive, red negative.
| Rank | Segment | Revenue | Share | Cost of goods | Gross profit | Margin | Assigned opex | Contribution | Materiality |
|---|---|---|---|---|---|---|---|---|---|
| 1 | Unassigned | $698,541 | 38.0% | -$8,192 | $706,733 | 101.2% | $0 | $706,733 | Material |
| 2 | Home & Decor | $606,865 | 33.0% | $334,206 | $272,660 | 44.9% | $2,000 | $270,660 | Material |
| 3 | Apparel | $368,005 | 20.0% | $214,304 | $153,701 | 41.8% | $2,000 | $151,701 | Material |
| 4 | Beauty | $143,497 | 7.8% | $81,706 | $61,791 | 43.1% | $0 | $61,791 | Moderate |
| 5 | Electronics | $0 | 0.0% | $765 | -$765 | n/a | $0 | -$765 | Immaterial |
| 6 | Miscellaneous | $20,650 | 1.1% | $5,009 | $15,641 | 75.7% | $484,449 | -$468,808 | Immaterial |
The class view has one anomaly worth a look: $484,449 of operating expense is tagged to the Miscellaneous class, which has $20,650 of revenue. Almost all of it is the Sales department's expense, tagged to a catch-all class rather than to the product lines it supports. It is the same problem as the delivery service, from the other side: cost with a segment but the wrong one.
| Rank | Segment | Revenue | Share | Cost of goods | Gross profit | Margin | Assigned opex | Contribution | Materiality |
|---|---|---|---|---|---|---|---|---|---|
| 1 | Unassigned | $681,677 | 37.1% | -$885 | $682,562 | 100.1% | $4,350 | $678,212 | Material |
| 2 | Warehouse Operations | $997,621 | 54.3% | $560,851 | $436,770 | 43.8% | $150 | $436,620 | Material |
| 3 | Store Operations | $79,241 | 4.3% | $42,093 | $37,148 | 46.9% | $0 | $37,148 | Immaterial |
| 4 | eCommerce | $58,190 | 3.2% | $28,157 | $30,034 | 51.6% | $0 | $30,034 | Immaterial |
| 5 | Production | $19,830 | 1.1% | $5,326 | $14,504 | 73.1% | $0 | $14,504 | Immaterial |
| 6 | Sales | $1,000 | 0.1% | $510 | $490 | 49.0% | $483,949 | -$483,459 | Immaterial |
Based on: revenue share against gross margin, for the four located segments.
| Quadrant | Segments | Reading |
|---|---|---|
| Large share, high margin | Los Angeles Distribution Center (46%) | The core of the business; its contribution is thin only because it carries the most assigned expense |
| Large share, lower margin | Miami (44%) | Two points below Los Angeles on margin, but negative after expense; the question is the expense, not the margin |
| Small share, high margin | San Francisco Store (49%), New York Store (50%) | Best margins in the business on 7% of revenue combined; almost no expense assigned, so contribution is overstated |
Of $3,103,004 of operating expense in the ledger over the period, $487,949 is tagged to a location and the rest is not. Miami and Los Angeles absorb nearly all of the tagged expense. The stores absorb almost none. That is not evidence that the stores are cheap to run; it is evidence that store costs are booked without a location.
The cross-subsidy therefore runs in two directions at once. Delivery service revenue subsidizes nothing because it has no costs attached, and the stores appear to subsidize nothing because they have no costs attached either, while the two distribution centers carry expense that may belong partly to both. Any decision that depends on segment contribution, such as closing Miami, should wait until the tagging is fixed. Gross margin, which is tagged consistently, says all four segments are healthy.
Segment exit, major pricing changes, and reallocation of more than 20% of resources require human review under the prompt's controls. None is recommended.
| ID | Type | Name | Handle | Scope | Used for | Complete |
|---|---|---|---|---|---|---|
| DL-001 | SuiteQL | Posted P&L lines by class, department, location, and transaction type | transactionaccountingline, transactionline, account, accountingperiod | Posting periods Sep 2025 to Aug 2026, subsidiaries 1-3 | All segment tables | Yes |
Adaptations from the prompt's templates: amounts come from transactionaccountingline by posting period rather than transactionline.amount by date; the segment dimensions are read from the transaction line, with location added to the template's class and department; journal entries are excluded from the segment tables for the reason given in the basis note, and their totals are disclosed; transaction.subsidiary is not exposed, so the elimination subsidiary is excluded through the line.
SELECT NVL(BUILTIN.DF(tl.class),'Unassigned'), NVL(BUILTIN.DF(tl.department),'Unassigned'), NVL(BUILTIN.DF(tl.location),'Unassigned'),
tl.subsidiary, a.accttype, t.type, SUM(-tal.amount) AS amt
FROM transactionaccountingline tal JOIN transaction t ON t.id = tal.transaction
JOIN transactionline tl ON tl.transaction = tal.transaction AND tl.id = tal.transactionline
JOIN account a ON a.id = tal.account JOIN accountingperiod ap ON ap.id = t.postingperiod
WHERE tal.posting = 'T' AND tl.subsidiary <> 4 AND a.accttype IN ('Income','COGS','Expense')
AND ap.startdate >= DATE '2025-09-01' AND ap.enddate <= DATE '2026-08-31'
GROUP BY BUILTIN.DF(tl.class), BUILTIN.DF(tl.department), BUILTIN.DF(tl.location), tl.subsidiary, a.accttype, t.type| Assumption | Category | Rationale | Sensitivity | Impact if wrong |
|---|---|---|---|---|
| Billing documents represent the operating business | Business logic | Journals carry no segment | High | All segment figures; disclosed |
| Location is the primary segment | Method | Only dimension tagged on revenue, COGS, and opex | Medium | Ranking |
| Assigned expense is correctly assigned | Data | Evidence above says it is not consistent | High | Contribution; flagged |
| No allocation of unassigned expense | Method | Allocation basis requires a human choice | High | Contribution after full cost; not computed |
| Test | Objective | Result |
|---|---|---|
| G1-001 | Segment revenue reconciles to billing-document income | Pass segment totals equal invoice and cash-sale income for the period |
| G1-002 | Every posted line carries a segment | Fail {100*un['rev']/tot:.0f}% of billed revenue and most operating expense have no location |
| G2-001 | Contribution arithmetic | Pass computed in code; segment totals foot to the ledger totals |
| G2-002 | Materiality screen | Pass three material segments, one moderate, two immaterial |
Confidence: 90% in segment gross margins; 50% in segment contribution, because expense assignment is demonstrably incomplete. The Miami finding is a data-quality finding first and a business finding second.