Forum Discussion
PowerBI-Power Query: Merge Not Maintaining Matching Columns Order
Hi There, yes we have got the same issue which seems to have started out of the blue end of March or beginning of April. There is nothing wrong with the M Code but Power BI interprets it in a different order. I suspect this is a new bug introduced by a Microsoft Monthly release.
Even reselecting the order of the columns in the second join table does not fix this.
However I may have a workaround until Microsoft fixes this. I suspect that it is ordering the columns in the second table according to the order they are defined in that table, hence the 1,2,3 etc.
So the workaround is to re-order the selection of the first table to match that of the second table. So basically select the first table according to the default column order of the second.
This seems to have worked for me. However note that the Edit Step wizard view switches them again so cannot be trusted!