{"uid":"cap_N5htcelM8r717hPEfRqTM","slug":"gross-margin-weighted-result-mean-calculator-78153a45","name":"Gross Margin Weighted Result Mean Calculator","description":"Gross margin - Weighted result mean: Calculate a mean of up to 200 results using supplied nonnegative weights; not a pooled accounting ratio. Metric: Gross margin. Supplied figures only; returns JSON with formula, units and limitations. One of 50 calculators with 20 analysis modes. No live feed, financial advice or trade execution. 0.01 USDC includes one bounded weighted result mean report.","url":"https://market.datapackvibe.com/x402/assistant-finance-gross-margin-weighted-mean?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"rows":{"type":"array","items":{"type":"object","required":["gross_profit","revenue"],"properties":{"revenue":{"type":"number","default":10000,"maximum":1000000000000,"minimum":0,"description":"Amount in a consistent supplied currency and reporting period","exclusiveMinimum":0},"gross_profit":{"type":"number","default":2000,"maximum":1000000000000,"minimum":-1000000000000,"description":"Amount in a consistent supplied currency and reporting period"}},"additionalProperties":false},"default":[{"revenue":10000,"gross_profit":2000},{"revenue":11000,"gross_profit":2200},{"revenue":10000,"gross_profit":2000},{"revenue":11000,"gross_profit":2200}],"maxItems":200,"minItems":2},"weights":{"type":"array","items":{"type":"number","default":1,"maximum":1000000000000,"minimum":0},"default":[1,2,1,2],"maxItems":200,"minItems":2}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_XFfDxxFQcw3q29zrNu9vS","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Calculates a weighted mean of gross margin across up to 200 supplied data rows using user-provided nonnegative weights, returning the result with formula, units, and limitations.","exampleAgentPrompt":"Calculate the weighted mean gross margin for these four quarters: revenues of 10000, 11000, 10000, 11000 with gross profits of 2000, 2200, 2000, 2200 — weight the second and fourth quarters twice as heavily as the first and third.","exampleUseCases":[{"title":"Blended gross margin across product lines","prompt":"I have three product lines with revenues of 500000, 300000, and 200000 and gross profits of 150000, 60000, and 80000. Weight them by revenue size — 5, 3, 2 — and give me the weighted mean gross margin."},{"title":"Quarterly gross margin with recency weighting","prompt":"Can you compute our weighted average gross margin for Q1 through Q4? Revenues were 80000, 85000, 90000, 95000 and gross profits were 20000, 22000, 24000, 26000. Weight the most recent quarters higher: use weights 1, 2, 3, 4."},{"title":"Portfolio company gross margin aggregation","prompt":"I need a weighted mean gross margin across five portfolio companies. Their revenues are 1000000, 750000, 500000, 250000, 100000 and gross profits are 400000, 225000, 100000, 50000, 10000. Weight them equally — all weights set to 1."}],"resultDescription":"A JSON object containing the weighted mean gross margin value, the formula used to compute it, the units of measurement, and any applicable limitations — covering up to 200 input rows weighted by the supplied nonnegative weights.","failureModes":["Mismatched array lengths between rows and weights — API will reject if counts differ","Fewer than 2 rows or weights supplied — minimum 2 items required","Revenue of zero or negative — revenue must be strictly positive (exclusiveMinimum: 0)","Weights summing to zero — undefined weighted mean result","Values exceeding maximum bounds (1 trillion) — schema validation error","Missing required fields (gross_profit or revenue) in any row — validation error"],"whenToPreferThis":"Choose this endpoint when you need a statistically weighted mean of gross margin across multiple data points — such as business units, product lines, time periods, or portfolio companies — and you want to control the relative importance of each observation via explicit weights. It is not a pooled accounting ratio and does not fetch live financial data, making it ideal for offline or agent-driven scenario analysis on user-supplied figures.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:46:31.730Z","isFirstParty":false,"canonicalSlug":"gross-margin-weighted-result-mean-calculator-78153a45"}