unpivot_keep_nulls
Preserve null-valued rows when unpivoting columns: replace nulls with a sentinel, unpivot, then restore the sentinel to null.
Instructions
Unpivot keeping NULL rows: replace nulls with a sentinel, UnpivotOtherColumns, then restore the sentinel to null - because plain unpivot silently DROPS null-valued rows. keepColumns (the columns NOT unpivoted) is comma-separated. Appends three steps to the table's M query.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes | ||
| sessionId | Yes | ||
| keepColumns | Yes | the columns to keep (not unpivot), comma-separated | |
| partitionName | No | partition name (optional; defaults to the first partition) |