{"uid":"cap_D7JwAI6m_RW7XEotGbvgh","slug":"aggregation-checks-secondary-measure-weighted-mean-date-by-category-90ba0e19","name":"Aggregation Checks — Secondary-Measure Weighted Mean + Date by Category Pivot","description":"Aggregation checks — Secondary-measure weighted mean + Date by category pivot: Secondary-measure weighted mean + Date by category pivot 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-185?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_yZcULRAgUubbCuK8AZORg","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 weighted mean on a secondary numeric measure and produces a date-by-category pivot table for up to 200 supplied aggregation-check rows.","exampleAgentPrompt":"I have 4 aggregation check rows with date, dataset_group, source_sum, and aggregate_sum values — can you compute the weighted mean on source_sum and also give me a pivot of those values by date and category group?","exampleUseCases":[{"title":"Reconciliation weighted mean check","prompt":"I need to validate our monthly reconciliation data — I have 50 rows each with a source_sum and aggregate_sum tagged to dataset groups and dates. Can you compute the weighted mean on aggregate_sum and pivot the results by date and group so I can spot discrepancies?"},{"title":"Category pivot for finance aggregation audit","prompt":"We're auditing aggregation totals across two business units. I have 120 rows with date, dataset_group, source_sum, and aggregate_sum. Run the weighted mean on source_sum and give me a date-by-category pivot so we can see how each group's sums break down over time."},{"title":"ETL output verification by group","prompt":"After our ETL pipeline ran, I have 80 rows of output data with source_sum and aggregate_sum per dataset_group and date. Can you calculate the weighted mean for source_sum and produce a pivot table by date and category to verify the output looks correct?"}],"resultDescription":"Returns two analytic reports: (1) a secondary-measure weighted mean computed across the supplied rows using the selected field (source_sum or aggregate_sum), and (2) a pivot table breaking down values by date and dataset_group category. Both reports are derived exclusively from the supplied data with no external lookups.","failureModes":["Fewer than 1 row or more than 200 rows supplied — request rejected","Missing required fields (row_id, dataset_group, date, source_sum, aggregate_sum) — validation error","Date values not matching YYYY-MM-DD format — schema validation failure","Numeric values outside ±1,000,000,000,000 range — rejected","All numeric values null — weighted mean undefined or returns null result","Invalid field enum value — schema error"],"whenToPreferThis":"Choose this endpoint when you have pre-assembled tabular aggregation-check records (with source_sum and aggregate_sum) and need both a weighted mean on a chosen numeric measure and a date-by-category pivot in a single low-cost call. It is ideal for reconciliation auditing, ETL validation, and business intelligence summarization on small-to-medium datasets (up to 200 rows) without requiring external data lookups or prediction.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-15T12:38:51.907Z","isFirstParty":false,"canonicalSlug":"aggregation-checks-secondary-measure-weighted-mean-date-by-category-90ba0e19"}