edit_analysis_block
Modify an analysis block's aggregated fields, aggregation functions, and row label without rebuilding or breaking existing formulas.
Instructions
Change what an existing analysis block computes: which of the source's fields it aggregates, with which function, and the label its row is addressed by.
Use this to arrive at an analysis in STEPS. Summing every number is often nearly right and wrong in one column — a rate wants AVERAGE, a text column wants COUNTA, an id column wants nothing at all. Adjust rather than rebuild: the block keeps its ref name, so formulas pointing at it keep working, and it is one undo.
aggregates REPLACES the set outright — a field you leave out stops being computed and its cell goes blank. Read the current set from describe_block first if you mean to add to it.
This is the simple kind of analysis: one row, one number per column. For one number per GROUP, use build__create_pivot / build__edit_pivot instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Ref name of the analysis block. | |
| label | No | New row label, which is also the key the result is addressed by. Omit to keep it. | |
| aggregates | No | Replaces the whole set. Omit to leave the functions alone and change only `label`. |