Sintaxe
M
Table.TransformColumnTypes(table as table, typeTransformations as list, optional culture as any) as tableParâmetros
- tabletableObrigatório
Tabela de entrada a transformar.
MSource- typeTransformationslistObrigatório
Conversões de tipo no formato
{nome da coluna, valor de tipo}.M{"a", type text}- cultureanyOpcional
Cultura usada na conversão (texto) ou registro com
CultureeMissingField.
Retorna
tableExemplo
M
let
Source = #table(type table [a = number, b = number],
{
{1, 2},
{3, 4}
}),
#"Transform Column" = Table.TransformColumnTypes(
Source,
{"a", type text}
)
in
#"Transform Column"Resultado
M
#table(type table [a = text, b = number],
{
{"1", 2},
{"3", 4}
})Mais informações
- Subgrupo
- Table