Forum Discussion

Breticious's avatar
Breticious
Helper I
7 years ago
Solved

How to Fix Data Does not Line up with Header

When I export a flat data file to Excel, the headers in Excel are shifted exactly one column to the right of the from the underlying data in the columns. Here is a clip of the export file with some a...
  • ImkeF's avatar
    7 years ago

    Renaming your columns like so shoud do the job:

     

    = Table.RenameColumns(Source, List.Select(List.Zip({Table.ColumnNames(Source), {""} & Table.ColumnNames(Source)}), each _{0} <> null))

    Just replace "Source" by a reference to your table if needed.