Forum Discussion
Breticious
7 years agoHelper I
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...
- 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.
ImkeF
7 years agoCommunity Champion
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.
Breticious
7 years agoHelper I
ImkeF : I like where you are going here and that works to move all columns one to the right. I need to add a new small modification to my question.
How can I tweak the starting column as to where to shift? Can I add two columns or do I have to run the process twice?
This community is the best!