Forum Discussion
braulio
2 years agoFrequent Visitor
table combine
Hi, Is it possible to combine two tables with the same structure but different column names without having to rename the columns so that they remain the same? = Table.Combine({#"primer bloque", #"s...
- 2 years ago
let Source = List.Zip({Table.ColumnNames(Table2),Table.ColumnNames(Table1)}), Result = Table1 & Table.RenameColumns(Table2,Source) in Result
lbendlin
2 years agoSuper User
this syntax requires column names to be the same.
That is incorrect. There is no requirement that the column names need to be the same. Table.Combine can append tables even if they have no columns in common.
Is it possible to combine two tables with the same structure but different column names
You can impose the column names of one table onto the other table (for example via Table.RenameColumns), and then append them.