Skip to main content
canonic decompose attributes the change of one metric between two periods of one time dimension, overall and by member of one or more split dimensions. It is the CLI form of the MCP tool decompose_change, which describes the methods and the result in full.
-f and the inline flags are mutually exclusive. Inline, --metric, --period-dimension, --base and --compare are all required. Without --json the result is printed as a summary line, a table of effects, and one table per split dimension. With --json, the output matches the MCP decompose_change tool’s payload byte-for-byte. To drill into one member, run it again with a filter on that member and the next dimension in --by. For ratio_parts, drill into the part instead: decompose the part metric with that filter, since one member can have no denominator of its own. A period that has not ended fails with period_open (exit 26), parts that do not sum to the numerator with decomposition_inconsistent (exit 27), and a project with decompose.enabled: false with capability_disabled (exit 28). See Error codes.