Forum Discussion
DejanLazarevic
5 years agoNew Member
Append data from four tables into one new table
Hi, I have four tables with the same column name and data type. I have to append data from all four tables into one, new. I can do append data with Append Queries as New options but only with two t...
- 5 years ago
It sounds like Power Query is trying to fold the queries back to the MySQL source, and MySQL cannot handle a UNION statement with more than 2 tables.
To fix this, break folding. To do this, go to each table you want to append and in the last step, wrap it with Table.Buffer().
So if the last step is something like:Table.AddColumn(#"Changed Type", "Total", each [Cost] + [Tax])Make it
Table.Buffer(Table.AddColumn(#"Changed Type", "Total", each [Cost] + [Tax]))Then Power Query will do the combinations in the mashup engine vs asking the server to do it.
DejanLazarevic
5 years agoNew Member
Thank you Edhans. This solves my problem.