{"uid":"cap_knzuW9sVehG1oVUWFA1VB","slug":"customer-segment-observations-secondary-measure-weighted-mean-keyed-cdc69242","name":"Customer Segment Observations — Secondary-Measure Weighted Mean + Keyed Dataset Comparison","description":"Customer segment observations — Secondary-measure weighted mean + Keyed dataset comparison: Secondary-measure weighted mean + Keyed dataset comparison for supplied customer segment observations records (account_count, revenue_amount). Up to 200 rows; 2 independent reports using shared local analytical engines. No live lookup, prediction, professional assessment or external action. 0.01 USDC includes 2 supplied-data reports for up to 200 rows.","url":"https://market.datapackvibe.com/x402/assistant-ib26-company-16-186?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"rows":{"type":"array","items":{"type":"object","required":["row_id","company_group","date","account_count","revenue_amount"],"properties":{"date":{"type":"string","default":"","pattern":"^\\d{4}-\\d{2}-\\d{2}$","maxLength":10},"row_id":{"type":"string","default":"","maxLength":80,"minLength":1},"account_count":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000},"company_group":{"type":"string","default":"","maxLength":80},"revenue_amount":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000}},"additionalProperties":false},"default":[{"date":"2026-10-01","row_id":"row-1","account_count":10,"company_group":"group-a","revenue_amount":1},{"date":"2026-10-02","row_id":"row-2","account_count":20,"company_group":"group-b","revenue_amount":2},{"date":"2026-10-03","row_id":"row-3","account_count":15,"company_group":"group-a","revenue_amount":3},{"date":"2026-10-04","row_id":"row-4","account_count":30,"company_group":"group-b","revenue_amount":4}],"maxItems":200,"minItems":1},"field":{"enum":["account_count","revenue_amount"],"type":"string","default":"account_count"},"other":{"type":"array","items":{"type":"object","required":["row_id","company_group","date","account_count","revenue_amount"],"properties":{"date":{"type":"string","default":"","pattern":"^\\d{4}-\\d{2}-\\d{2}$","maxLength":10},"row_id":{"type":"string","default":"","maxLength":80,"minLength":1},"account_count":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000},"company_group":{"type":"string","default":"","maxLength":80},"revenue_amount":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000}},"additionalProperties":false},"default":[{"date":"2026-10-01","row_id":"row-1","account_count":10,"company_group":"group-a","revenue_amount":1},{"date":"2026-10-02","row_id":"row-2","account_count":21,"company_group":"group-b","revenue_amount":2},{"date":"2026-10-03","row_id":"row-3","account_count":17,"company_group":"group-a","revenue_amount":3},{"date":"2026-10-04","row_id":"row-4","account_count":33,"company_group":"group-b","revenue_amount":4}],"maxItems":200,"minItems":0}}},"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_tBITYBeVyl9Zm-gAggA4j","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":"Computes a secondary-measure weighted mean and performs a keyed dataset comparison on up to 200 customer segment observation rows (account_count, revenue_amount), returning two analytical reports.","exampleAgentPrompt":"I have two sets of customer segment records — rows of company_group, date, account_count, and revenue_amount — and I want to compute the weighted mean of revenue_amount (weighted by account_count) across segments, plus a keyed comparison between the two datasets. Can you run both reports on my data?","exampleUseCases":[{"title":"Period-over-period segment revenue comparison","prompt":"I have customer segment data for Q1 and Q2 — each row has a company group, date, account_count, and revenue_amount — and I want to see the weighted mean of revenue_amount for Q1 and a side-by-side keyed comparison showing what changed between Q1 and Q2. Can you run that analysis?"},{"title":"Account count weighted mean across company groups","prompt":"Can you compute the weighted mean of account_count across my customer segments using revenue_amount as the weight? I'll supply up to 150 rows with row_id, company_group, date, account_count, and revenue_amount. Also run a keyed comparison against my baseline dataset."},{"title":"Validating updated segment data against original","prompt":"I updated our customer segment records and want to verify what changed. Can you take my original rows and the updated rows — both with company_group, date, account_count, and revenue_amount — and give me a keyed dataset comparison plus the weighted mean of revenue_amount for the updated set?"}],"resultDescription":"Returns two analytical reports: (1) the secondary-measure weighted mean computed across the supplied rows for the chosen field (account_count or revenue_amount), and (2) a keyed dataset comparison between the primary rows and the comparison dataset, highlighting differences by key (row_id, company_group, date). All computation is local with no external lookups.","failureModes":["Supplying more than 200 rows results in rejection or truncation","Rows missing required fields (row_id, company_group, date, account_count, revenue_amount) will cause validation errors","Null values in the weight or target field may affect weighted mean accuracy or cause errors","Date strings not matching YYYY-MM-DD pattern will fail schema validation","Empty rows array (minItems: 1 violated) will return an error","Mismatched keys between primary and comparison datasets may yield empty or partial comparison results"],"whenToPreferThis":"Choose this endpoint when you have up to 200 customer segment observation rows with account_count and revenue_amount fields and need both a weighted mean computation (using one measure to weight the other) and a keyed comparison between two datasets in a single low-cost call. It is ideal for period-over-period segment analysis, data validation between two snapshots, or computing weighted aggregates across company groups without needing a full data warehouse.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-25T06:57:02.637Z","isFirstParty":false,"canonicalSlug":"customer-segment-observations-secondary-measure-weighted-mean-keyed-cdc69242"}