Member Junction
    Preparing search index...

    Action that performs aggregation operations on arrays of data Supports grouping, counting, summing, averaging, and other statistical operations

    // Simple aggregation
    await runAction({
    ActionName: 'Aggregate Data',
    Params: [{
    Name: 'InputData',
    Value: [
    { category: 'A', value: 10 },
    { category: 'A', value: 20 },
    { category: 'B', value: 15 }
    ]
    }, {
    Name: 'Aggregations',
    Value: [
    { field: 'value', operation: 'sum', outputName: 'totalValue' },
    { field: 'value', operation: 'avg', outputName: 'avgValue' }
    ]
    }]
    });

    // Group by aggregation
    await runAction({
    ActionName: 'Aggregate Data',
    Params: [{
    Name: 'InputData',
    Value: salesData
    }, {
    Name: 'GroupBy',
    Value: ['region', 'product']
    }, {
    Name: 'Aggregations',
    Value: [
    { field: 'sales', operation: 'sum', outputName: 'totalSales' },
    { field: 'sales', operation: 'count', outputName: 'transactionCount' }
    ]
    }]
    });

    Hierarchy (View Summary)

    Index

    Constructors

    Methods

    Constructors

    Methods