Forum Discussion
majdkaid22
Helper V
9 years agoReorder columns in Query Editor without listing the column names
Hi guys, am doing union dax for 10 tables. While the process is easy, my columns in each table are not in the same order. In power Query, all the columns in 10 tables are in the exact same o...
- 9 years ago
hi majdkaid22,
You may reorder your columns in power query alphabetically using a custom code.
=Table.ReorderColumns( NameOfPreviousStep, List.Order( Table.ColumnNames( NameOfPreviousStep ), Order.Ascending )
danextian
Super User
9 years agohi majdkaid22,
You may reorder your columns in power query alphabetically using a custom code.
=Table.ReorderColumns( NameOfPreviousStep, List.Order( Table.ColumnNames( NameOfPreviousStep ), Order.Ascending )
majdkaid22
Helper V
9 years agodanextian v-jiascu-msft thanks gents. this solution worked!