Table.PrefixColumns
This topic applies to the Power Query Formula Language which can be used with Power Query and Power BI Desktop to build queries that mashup data. See the list of function categories.
Returns a table where the columns have all been prefixed with a text value.
Table.PrefixColumns(table as table, prefix as text) as table
| Argument | Description |
|---|---|
| table | The Table to modify. |
| prefix | The prefix to add to every text value. |
Table.PrefixColumns(Table.FromRecords(
{
[CustomerID = 1, Name = "Bob", Phone = "123-4567"]
}
), "MyTable")
| MyTable.CustomerID | MyTable.Name | MyTable.Phone |
|---|---|---|
| 1 | Bob | 123-4567 |
Show: