Formazione
Modulo
Trasformare i dati implementando pivot, unpivot, rollup e cube - Training
Questo contenuto fa parte di Trasformare i dati implementando pivot, unpivot, rollup e cube.
Questo browser non è più supportato.
Esegui l'aggiornamento a Microsoft Edge per sfruttare i vantaggi di funzionalità più recenti, aggiornamenti della sicurezza e supporto tecnico.
Table.UnpivotOtherColumns(table as table, pivotColumns as list, attributeColumn as text, valueColumn as text) as table
Converte tutte le colonne ad eccezione di un set specificato in coppie attributo-valore, combinate con i valori restanti in ogni riga.
Converte tutte le colonne ad eccezione di un set specificato in coppie attributo-valore, combinate con i valori restanti in ogni riga.
Utilizzo
Table.UnpivotOtherColumns(
Table.FromRecords({
[key = "key1", attribute1 = 1, attribute2 = 2, attribute3 = 3],
[key = "key2", attribute1 = 4, attribute2 = 5, attribute3 = 6]
}),
{"key"},
"column1",
"column2"
)
Output
Table.FromRecords({
[key = "key1", column1 = "attribute1", column2 = 1],
[key = "key1", column1 = "attribute2", column2 = 2],
[key = "key1", column1 = "attribute3", column2 = 3],
[key = "key2", column1 = "attribute1", column2 = 4],
[key = "key2", column1 = "attribute2", column2 = 5],
[key = "key2", column1 = "attribute3", column2 = 6]
})
Formazione
Modulo
Trasformare i dati implementando pivot, unpivot, rollup e cube - Training
Questo contenuto fa parte di Trasformare i dati implementando pivot, unpivot, rollup e cube.
Documentazione
Altre informazioni su: Table.Unpivot
Altre informazioni su: Table.Pivot
Table.PrefixColumns - PowerQuery M
Altre informazioni su: Table.PrefixColumns