Complete the code to promote the first row as headers in Power Query.
let
Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
PromotedHeaders = Table.[1](Source)
in
PromotedHeadersThe correct function to promote the first row as headers in Power Query is Table.PromoteHeaders.
Complete the code to promote headers and change the data type to text in Power Query.
let
Source = Csv.Document(File.Contents("data.csv")),
PromotedHeaders = Table.[1](Source),
ChangedType = Table.TransformColumnTypes(PromotedHeaders,{{"Column1", type text}})
in
ChangedTypeUse Table.PromoteHeaders to promote the first row as headers before changing the column type.
Fix the error in the code to correctly promote headers in Power Query.
let
Source = Excel.CurrentWorkbook(){[Name="Sales"]}[Content],
PromotedHeaders = Table.[1](Source, [PromoteAllScalars=true])
in
PromotedHeadersThe correct function is Table.PromoteHeaders with the exact spelling and casing.
Fill both blanks to promote headers and remove errors in Power Query.
let
Source = Csv.Document(File.Contents("data.csv")),
PromotedHeaders = Table.[1](Source, [2]),
CleanedData = Table.RemoveRowsWithErrors(PromotedHeaders)
in
CleanedDataUse Table.PromoteHeaders with the option [PromoteAllScalars=true] to promote headers properly.
Fill all three blanks to promote headers and change column types in Power Query.
let
Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
PromotedHeaders = Table.[1](Source, [2]),
ChangedType = Table.TransformColumnTypes(PromotedHeaders, {{"Date", [3])
in
ChangedTypeUse Table.PromoteHeaders with [PromoteAllScalars=true] option, then change the 'Date' column type to type date.