Training
Module
Create and manage columns within a table in Microsoft Dataverse - Training
Learn how to create and manage table columns in Dataverse.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Table.TransformColumnNames(table as table, nameGenerator as function, optional options as nullable record) as table
Transforms column names by using the given nameGenerator
function. Valid options:
MaxLength
specifies the maximum length of new column names. If the given function results with a longer column name, the long name will be trimmed.
Comparer
is used to control the comparison while generating new column names. Comparers can be used to provide case-insensitive or culture and locale-aware comparisons.
The following built-in comparers are available in the formula language:
Comparer.Ordinal
: Used to perform an exact ordinal comparisonComparer.OrdinalIgnoreCase
: Used to perform an exact ordinal case-insensitive comparisonComparer.FromCulture
: Used to perform a culture-aware comparisonRemove the #(tab)
character from column names
Usage
Table.TransformColumnNames(Table.FromRecords({[#"Col#(tab)umn" = 1]}), Text.Clean)
Output
Table.FromRecords({[Column = 1]})
Transform column names to generate case-insensitive names of length 6.
Usage
Table.TransformColumnNames(
Table.FromRecords({[ColumnNum = 1, cOlumnnum = 2, coLumnNUM = 3]}),
Text.Clean,
[MaxLength = 6, Comparer = Comparer.OrdinalIgnoreCase]
)
Output
Table.FromRecords({[Column = 1, cOlum1 = 2, coLum2 = 3]})
Training
Module
Create and manage columns within a table in Microsoft Dataverse - Training
Learn how to create and manage table columns in Dataverse.
Documentation
Table.TransformColumns - PowerQuery M
Learn more about: Table.TransformColumns
Table.RenameColumns - PowerQuery M
Learn more about: Table.RenameColumns
Table.TransformRows - PowerQuery M
Learn more about: Table.TransformRows