Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
SYM1986
Helper I
Helper I

Column order in data view

Hi all,

I have a report,after  i load the data soure. There are five queries,2017,2018,2019,2020, 2021.

These queries have the same column order in power query.But afer i apply the querie,four of them have change their column order in the data view, Thie cause the dax ‘union’ failed.(see the following photos)

Capture.JPG

The 2021 have the same colum order in the data source and the power query,(2017,2018,2019,2020, change the column order),i only do the same action of remove colum in power query, and after the action they have the same column order.

Can anyone help to tell me why it show this in data view and how to fix this?

thank you

 

1.JPG

2.JPG3.JPG

1 ACCEPTED SOLUTION
v-jingzhang
Community Support
Community Support

With UNION function, columns are combined by position in their respective tables.


If you want to combine multiple queries into a query, you can also use Append queries in Power Query Editor as an alternative which are combined by column headers.

 

Regards,
Community Support Team _ Jing

View solution in original post

5 REPLIES 5
v-jingzhang
Community Support
Community Support

With UNION function, columns are combined by position in their respective tables.


If you want to combine multiple queries into a query, you can also use Append queries in Power Query Editor as an alternative which are combined by column headers.

 

Regards,
Community Support Team _ Jing

Yes @v-jingzhang ,it‘s a very good solution. Thank you.

amitchandak
Super User
Super User

@SYM1986 , does column order matter for you here(date studio)?

It can change based on the order columns are added or removed.

You may have to check all steps in advance editor (right-click in power query on the table and open it)

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi @amitchandak , it affect the DAX of union.

The steps in advance editor now are same, but the queries were added in each year,  so i adjusted some steps before 2021.

I delete all the queries, and reload all the datas, now they have the same order.

thank you.

@SYM1986 , DAX union can have an impact. You have to use select columns in that case,

 

But best was what you have done.

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.