Forum Discussion
MichaelW
10 years agoNew Member
How to format column header only (not data)?
Most of the columns in my Excel file have the date as a heading (formatted Mmm-YY in Excel). They initially appear in the Power BI query as M/D/YYYY, but when I select "Use First Row as Headers" the...
Greg_Deckler
Community Champion
10 years agoThe M code for renaming columns is:
#"Renamed Columns" = Table.RenameColumns(#"PreviousStep",{{"OldColumnName", "NewColumnName"}}),Probably be a little more efficient to go into the Advanced Editor and copy and paste the rename columns M code.