add_calculation_group
Convert a single-column table into a calculation group to build reusable selectors like Time Intelligence (Current/YTD/PY/YoY) for any measure. Supports live sessions or offline PBIP folders.
Instructions
Turn a (single-column) table into a calculation group - the engine for reusable selectors like Time Intelligence (Current/YTD/PY/YoY) applied to ANY measure. After this, add items with add_calculation_item. Lower precedence is applied first when groups are nested. target=pbip: pass pbipFolder instead of sessionId to apply the edit OFFLINE to a PBIP semantic model's TMDL (no engine; a missing table is created whole and DiscourageImplicitMeasures is switched on).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | No | the table to convert into a calculation group | |
| sessionId | No | sessionId from connect_model (live engine; pass exactly one of sessionId / pbipFolder) | |
| pbipFolder | No | target=pbip: a PBIP <name>.SemanticModel / TMDL definition folder to edit OFFLINE (engine-free) | |
| precedence | No | precedence when multiple groups exist (higher applies last; optional) |