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  

ArgumentDescription
tableThe Table to modify.
prefixThe prefix to add to every text value.
Table.PrefixColumns(Table.FromRecords(  
  
{  
  
    [CustomerID = 1, Name = "Bob", Phone = "123-4567"]  
  
}  
  
), "MyTable")  

MyTable.CustomerIDMyTable.NameMyTable.Phone
1Bob123-4567
Show: