edit_visual_aggregation
Change the aggregation (Sum, Avg, Min, Max, Count, etc.) applied to a field on a Power BI visual to update how data is summarized.
Instructions
Change the AGGREGATION applied to a field projected on a visual: wraps the Select node's Column/Measure in an Aggregation { Function }. aggregation=Sum|Avg|Min|Max|Count|CountNonNull|Median|StdDev|Var (index 0..8). field='Table.Field' (the queryRef). scopedEvalBaseline=true wraps it in a context-free ScopedEval/AllRolesRef baseline (FLAG: confirm shape in Desktop).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | Yes | page name or displayName | |
| field | Yes | the field, 'Table.Field' | |
| visual | Yes | visual name (from list_visuals) | |
| aggregation | Yes | Sum|Avg|Min|Max|Count|CountNonNull|Median|StdDev|Var | |
| reportSessionId | Yes | ||
| scopedEvalBaseline | No | wrap in a ScopedEval/AllRolesRef context-free baseline |