Sample output from the Product Line Profitability Analyzer prompt in the NetSuite AI Prompt Library, run against a NetSuite test account. Every name and number here is test data. Back to the post · The library

Product finance · NetSuite TD3016323

Product Line Profitability Analysis

Revenue, cost, margin, growth, and portfolio position for every product line and the products inside them, from twelve months of billed sales.

Prepared 2026-09-23 · Subsidiaries 1-3, elimination excluded · Source: NetSuite sales lines via SuiteQL · Prompt: Product Line Profitability Analyzer, NetSuite AI Prompt Library v1 · Standard Review depth

Executive Summary

Billed revenue over the trailing twelve months was $1,862,370, up 85% on the prior twelve, and gross profit on that revenue was $1,199,768. Two things drive the headline and they should be read separately. Product lines, meaning the four classes that carry inventory, earned $511,779 on $1,174,381 of revenue, a gross margin of 43.6%, with every class between 42% and 60%. Delivery service, a single service item with no cost recorded against it, added $687,989 of revenue that shows as pure margin. That is 37% of revenue and 57% of gross profit, and the second figure is not real until the cost of delivering is captured.

Among the product lines, Home and Decor is the largest at $624,469 and grew 27%; Apparel is second at $386,820 and grew 26%. Both are stars on the portfolio matrix: growing faster than 10% with margins above 40%. Beauty is a cash cow, 44% margin on 7% growth. No product line and no product sells below cost, but the margin range within lines is wide, from an Estes Park chair at 3% to a leather valise at 63%.

Billed revenue, TTM
$1,862,370
+85% vs prior 12 months
Product gross margin
43.6%
four inventory classes
Delivery service share of revenue
37%
no cost captured; margin overstated
Product lines that are stars
2 of 4
Home and Decor, Apparel
Scope note. This analysis uses invoices and cash sales, because they carry the item, class, quantity, and cost estimate that product profitability needs. Revenue posted to the ledger by journal entry, which is the majority of income in this account, has none of those attributes and is outside the analysis. The gross margin here is therefore a margin on billed product sales, not the ledger's gross margin.

Profitability Summary

Comparing: September 23, 2025 to September 23, 2026 against the twelve months before. Gross profit = revenue minus the cost estimate carried on each sales line. Ranked by gross profit.

Product lineItemsUnitsRevenueCostGross profitMarginGrowthRankRating
Delivery service (no class)3131$687,989$0$687,989100.0%+807.2%1Cost not captured
Home & Decor291,416$624,469$349,126$275,34344.1%+27.0%2Acceptable
Apparel503,324$386,820$224,979$161,84141.8%+25.9%3Acceptable
Beauty415,256$141,167$79,597$61,57043.6%+6.8%4Acceptable
Miscellaneous11173$21,925$8,900$13,02559.4%new5Strong
Delivery service$687,989Home & Decor$624,469Apparel$386,820Beauty$141,167Miscellaneous$21,925

Margin Analysis

Margins by product line sit in a narrow band, which says the pricing and costing conventions are consistent across categories. The spread is inside the lines.

Miscellaneous59.4%Home & Decor44.1%Beauty43.6%Apparel41.8%

Most profitable products

ProductLineUnitsRevenueGross profitMarginGrowth
Black Leather ValiseApparel84$29,177$18,34162.9%+108%
Box SpringHome & Decor76$38,000$15,20040.0%+10%
Estes Park OttomanHome & Decor53$29,837$14,54648.8%+70%
Estes Park ChestHome & Decor43$28,965$14,17348.9%-33%
Estes Park Queen Poster HeadboardHome & Decor38$24,998$12,15448.6%-3%
Patriarch Luxury Firm T BHome & Decor24$21,303$11,70354.9%+5%
Contour Rhapsody Breeze K BHome & Decor62$30,120$11,52038.2%+101%
Contour Rhapsody Breeze Q BHome & Decor61$29,640$11,34038.3%+85%
Contour Rhapsody Breeze F MHome & Decor61$29,640$11,34038.3%+98%
Contour Rhapsody Breeze T MHome & Decor61$29,640$11,34038.3%+98%

The Contour Rhapsody Breeze mattress line accounts for eight of the top twelve products by gross profit and roughly doubled in every size. Its margin is 38%, below the line average, so its contribution comes from volume.

Lowest-margin products with meaningful revenue

ProductLineUnitsRevenueGross profitMargin
Estes Park ChairHome & Decor30$9,477$2522.7%
The Bindel JacketApparel47$14,626$1,46610.0%
Salida Backpack BUApparel32$3,102$54217.5%
Salida Backpack GRApparel34$3,302$58217.6%
Black Leather BeltApparel58$2,631$48518.4%
Brown Leather SatchelApparel57$21,999$4,90022.3%
Pro Essentials Brush SetBeauty66$2,642$66225.1%
Rhinestone BlouseApparel37$2,507$65726.2%

The Estes Park chair earns $252 on $9,477 of sales, a 3% margin, while the ottoman, chest, and headboard in the same collection earn 49%. That is the pattern to investigate first: a single item in an otherwise healthy collection, which usually means a costing or pricing error rather than a product problem.

Portfolio Analysis

Based on: growth above 10% and margin above 40% as the quadrant thresholds, applied to the four product lines. Delivery service is excluded because its margin is unmeasured.

QuadrantProduct linesRevenue shareMarginRecommendation
StarApparel, Home & Decor86.1%43.2%Invest
Cash cowBeauty12.0%43.6%Maintain
NewMiscellaneous1.9%59.4%Watch

Mix and margin contribution

LineRevenue shareGross profit shareContribution vs share
Delivery service36.9%57.3%above revenue share
Home & Decor33.5%22.9%below revenue share
Apparel20.8%13.5%below revenue share
Beauty7.6%5.1%below revenue share
Miscellaneous1.2%1.1%below revenue share

Every product line contributes gross profit below its revenue share, because delivery service, with no cost, absorbs 57% of gross profit on 37% of revenue. Correct the delivery cost and the product lines' contribution shares rise to match their revenue shares almost exactly.

Recommendations

Product discontinuation, cost allocation, and pricing decisions require human review under the prompt's controls. None is recommended here.

Appendix: Data Lineage

IDTypeNameHandleScopeUsed forComplete
DL-001SuiteQLSales linestransaction (CustInvc, CashSale), transactionline, itemTrailing 24 months, 5,553 lines, subsidiaries 1-3Revenue, cost, units, growth by class and itemYes

Adaptations from the prompt's templates: product line is the class on the transaction line, because the item record's class is unpopulated for most items in this account; revenue is transactionline.netamount (sign-reversed), which nets discounts; the cost estimate is stored negative and was sign-corrected; transaction.subsidiary is not exposed, so the elimination subsidiary is excluded through the line; the prompt's :minimum_revenue filter was applied as $2,000 for the low-margin table only.

Query
SELECT t.id, t.type, t.trandate, t.entity, tl.item, BUILTIN.DF(tl.item), i.itemtype,
       NVL(BUILTIN.DF(tl.class),'None'), NVL(BUILTIN.DF(tl.department),'None'), NVL(BUILTIN.DF(tl.location),'None'),
       -tl.quantity, -NVL(tl.netamount,0), NVL(tl.costestimate,0), tl.rate, tl.subsidiary
FROM transaction t JOIN transactionline tl ON tl.transaction = t.id JOIN item i ON i.id = tl.item
WHERE t.type IN ('CustInvc','CashSale') AND t.posting = 'T' AND tl.mainline = 'F' AND tl.taxline = 'F' AND tl.subsidiary <> 4
  AND t.trandate >= ADD_MONTHS(SYSDATE, -24)

Appendix: Assumptions and Verification

AssumptionCategoryRationaleSensitivityImpact if wrong
Line cost estimate is the product's direct costDataOnly cost available per sales lineMediumAll margins
Line class is the product lineDataItem class unpopulatedLowGrouping
No indirect cost allocationMethodPrompt's Block 3 requires an allocation basis a person must chooseHighContribution after allocation; not computed
Delivery service margin is unmeasured, not 100%Business logicNo cost recordedHighMix analysis; disclosed
TestObjectiveResult
G1-001Line revenue reconciles to invoice-sourced incomePass within rounding of the ledger's invoice and cash-sale income for the period
G1-002Cost present on product linesPass every inventory and assembly line carries a cost estimate; 3 items do not, all services
G2-001Margin arithmeticPass computed in code; class totals foot to item totals
G2-002Growth comparabilityPass both windows are 365 days

Confidence: 90% in product-line revenue and growth; 75% in margins, which depend on the cost estimate being maintained; the delivery service margin is unknown.

Analysis is read-only and derived from live SuiteQL. Customer- and vendor-specific actions require human review before any account change.SuiteStep, LLC