add_hierarchy
Turn ordered columns into drill-down hierarchies for deeper data analysis. Works with live sessions or offline PBIP files.
Instructions
Create a drill-down hierarchy on a table from an ordered, comma-separated list of existing columns (e.g. "Year,Quarter,Month" or "Segment,Subsegment,ItemDesc"). target=pbip: pass pbipFolder instead of sessionId to apply the same edit OFFLINE to a PBIP semantic model's TMDL (no engine).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | hierarchy name | |
| table | No | the table to build the hierarchy on | |
| levels | No | ordered column names, comma-separated | |
| 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) |