{"uid":"cap_c4ZEX1jwlPxnsWYXbqe-E","slug":"aggregation-checks-trailing-mean-series-keyed-dataset-comparison-33147684","name":"Aggregation Checks — Trailing Mean Series + Keyed Dataset Comparison","description":"Aggregation checks — Trailing mean series + Keyed dataset comparison: Trailing mean series + Keyed dataset comparison for supplied aggregation checks records (source_sum, aggregate_sum). 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-analytics-17-153?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"rows":{"type":"array","items":{"type":"object","required":["row_id","dataset_group","date","source_sum","aggregate_sum"],"properties":{"date":{"type":"string","default":"","pattern":"^\\d{4}-\\d{2}-\\d{2}$","maxLength":10},"row_id":{"type":"string","default":"","maxLength":80,"minLength":1},"source_sum":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000},"aggregate_sum":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000},"dataset_group":{"type":"string","default":"","maxLength":80}},"additionalProperties":false},"default":[{"date":"2026-10-01","row_id":"row-1","source_sum":10,"aggregate_sum":1,"dataset_group":"group-a"},{"date":"2026-10-02","row_id":"row-2","source_sum":20,"aggregate_sum":2,"dataset_group":"group-b"},{"date":"2026-10-03","row_id":"row-3","source_sum":15,"aggregate_sum":3,"dataset_group":"group-a"},{"date":"2026-10-04","row_id":"row-4","source_sum":30,"aggregate_sum":4,"dataset_group":"group-b"}],"maxItems":200,"minItems":1},"field":{"enum":["source_sum","aggregate_sum"],"type":"string","default":"source_sum"},"other":{"type":"array","items":{"type":"object","required":["row_id","dataset_group","date","source_sum","aggregate_sum"],"properties":{"date":{"type":"string","default":"","pattern":"^\\d{4}-\\d{2}-\\d{2}$","maxLength":10},"row_id":{"type":"string","default":"","maxLength":80,"minLength":1},"source_sum":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000},"aggregate_sum":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000},"dataset_group":{"type":"string","default":"","maxLength":80}},"additionalProperties":false},"default":[{"date":"2026-10-01","row_id":"row-1","source_sum":10,"aggregate_sum":1,"dataset_group":"group-a"},{"date":"2026-10-02","row_id":"row-2","source_sum":21,"aggregate_sum":2,"dataset_group":"group-b"},{"date":"2026-10-03","row_id":"row-3","source_sum":17,"aggregate_sum":3,"dataset_group":"group-a"},{"date":"2026-10-04","row_id":"row-4","source_sum":33,"aggregate_sum":4,"dataset_group":"group-b"}],"maxItems":200,"minItems":0},"window":{"type":"integer","default":2,"maximum":200,"minimum":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_c2RM6Ew9irjapjhUqFyWg","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":"Runs two analytical reports on user-supplied aggregation check records: a trailing mean time series and a keyed dataset comparison, for up to 200 rows.","exampleAgentPrompt":"Can you run a trailing mean series and keyed dataset comparison on these two sets of aggregation records — one with source_sum values for group-a and group-b across October 2026 dates, and another slightly different set — analyzing the source_sum field for discrepancies?","exampleUseCases":[{"title":"Financial reconciliation drift detection","prompt":"I have two versions of our monthly revenue rollup — the source ledger rows and the aggregated totals by region — each with row IDs, dates, and source_sum and aggregate_sum values. Can you run a trailing mean series plus a keyed comparison across both datasets to see where the numbers are drifting apart?"},{"title":"ETL pipeline aggregation audit","prompt":"Our ETL pipeline produces daily source_sum and aggregate_sum figures by dataset_group for up to 150 rows. Can you compute a trailing mean over time and do a keyed dataset comparison between this week's run and last week's run to catch any unexpected changes?"},{"title":"Multi-group sum consistency check","prompt":"I have two batches of aggregation check records — both broken into group-a and group-b with dated rows — and I want to validate consistency using a trailing mean series on the aggregate_sum field and a side-by-side keyed comparison of the two batches."}],"resultDescription":"Two independent analytical reports: (1) a trailing mean time series computed over the specified field (source_sum or aggregate_sum) across the supplied rows, and (2) a keyed dataset comparison between the primary rows and the secondary 'other' dataset, highlighting differences by row_id and dataset_group. Results are computed locally with no external lookups.","failureModes":["Fewer than 1 row supplied — request rejected by minItems constraint","More than 200 rows submitted — truncation or rejection due to maxItems limit","Invalid date format (not YYYY-MM-DD) causes schema validation failure","source_sum or aggregate_sum values outside ±1,000,000,000,000 are rejected","Missing required fields (row_id, dataset_group, date) cause row-level errors","Mismatched row_ids between primary and 'other' dataset reduce comparison coverage","Payment of 0.01 USDC not completed — request blocked by x402 paywall"],"whenToPreferThis":"Choose this endpoint when you need both a trailing mean time series analysis AND a keyed cross-dataset comparison in a single call on aggregation check records (source_sum vs aggregate_sum). It is ideal for reconciliation workflows, ETL auditing, and financial data quality checks where you already have your data structured with row_id, date, dataset_group, source_sum, and aggregate_sum fields and want two complementary statistical reports at minimal cost.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-24T00:50:56.129Z","isFirstParty":false,"canonicalSlug":"aggregation-checks-trailing-mean-series-keyed-dataset-comparison-33147684"}