add_partition
Add a new M partition to an existing table for data segmentation by year or other dimensions. Optionally set storage mode (Import, DirectQuery, etc.) and refresh before saving.
Instructions
Add an M partition to an existing table (e.g. to split a fact by year). mode = Import | DirectQuery | Dual | DirectLake (optional; engine default when omitted). The new partition has never refreshed - refresh before saving the .pbix.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| m | Yes | the partition's full M let-expression | |
| mode | No | Import | DirectQuery | Dual | DirectLake (optional) | |
| name | Yes | new partition name | |
| table | Yes | ||
| sessionId | Yes |