{"uid":"cap_ZC95eyN2ftsHZ4MhrCkly","slug":"aggregation-checks-numeric-row-ordering-secondary-measure-weighted-mean-3b213125","name":"Aggregation Checks — Numeric Row Ordering + Secondary-Measure Weighted Mean","description":"Aggregation checks — Numeric row ordering + Secondary-measure weighted mean: Numeric row ordering + Secondary-measure weighted mean 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-121?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"}}},"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_0Y9JyEZqsxdoX2gJIcVMh","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 supplied aggregation-check records: numeric row ordering and secondary-measure weighted mean, for up to 200 rows.","exampleAgentPrompt":"Can you run numeric row ordering and secondary-measure weighted mean reports on my aggregation data? I have 4 rows with group-a and group-b, dates from 2026-10-01 to 2026-10-04, source_sums of 10, 20, 15, 30, aggregate_sums of 1, 2, 3, 4 — use source_sum as the primary field.","exampleUseCases":[{"title":"ETL pipeline aggregation audit","prompt":"I need to check if the source_sum values in my pipeline output are ranked in the right numeric order and get a weighted mean — here are my 8 rows with row IDs, dates in October 2026, source_sums ranging from 100 to 8000, and aggregate_sums from 5 to 200, split across two dataset groups. Use source_sum as the field."},{"title":"Financial reconciliation row validation","prompt":"Can you analyze these 20 reconciliation records for me? Each has a row_id, a date between 2025-01-01 and 2025-01-20, a source_sum and aggregate_sum. I want to see if the rows are numerically ordered correctly and get the weighted mean of source_sum weighted by aggregate_sum. The field I care about is source_sum."},{"title":"Sales data aggregation quality check","prompt":"I've got 50 rows of daily sales aggregation data across three dataset groups with dates in Q3 2025, and I want two reports: one showing how the source_sum values rank numerically row by row, and another giving me the weighted mean using aggregate_sum as the weight. Field should be source_sum."}],"resultDescription":"Two analytical reports computed on the supplied rows: (1) a numeric row ordering report ranking rows by the selected field, and (2) a secondary-measure weighted mean report using the secondary numeric measure as weights — both derived entirely from the user-supplied data, with no external lookups.","failureModes":["Fewer than 1 or more than 200 rows submitted — request rejected","Date values not matching YYYY-MM-DD pattern — validation error","source_sum or aggregate_sum values outside ±1,000,000,000,000 — schema rejection","Missing required fields (row_id, dataset_group, date, source_sum, aggregate_sum) — error response","Invalid field enum value (not 'source_sum' or 'aggregate_sum') — validation failure","Payment not provided or insufficient USDC — 402 payment required"],"whenToPreferThis":"Choose this endpoint when you need both numeric row ordering analysis and a secondary-measure weighted mean computed together on up to 200 aggregation-check records in a single low-cost call, especially for ETL validation, financial reconciliation auditing, or data quality checks where no external data or live lookups are needed.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-15T12:39:13.895Z","isFirstParty":false,"canonicalSlug":"aggregation-checks-numeric-row-ordering-secondary-measure-weighted-mean-3b213125"}