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
MadhuKumar
Helper II
Helper II

Power BI Union issue

Hi Team,

 

I have reorder the columns in the report don't want to use DAX because i have many columns in the each table so i just want to make the report automated.I want to reorder the columns as Column1.Column2,column3 .Please,refer the below screenshot.

MadhuKumar_0-1666937676367.png

 

For example

Table1 the column order is A,B,C

and

Table2 the column order is A,C,B .

 

Could anyone please help me on this?

I want change the Table2 order as Table1

1 ACCEPTED SOLUTION
PhilipTreacy
Super User
Super User

Hi @MadhuKumar 

 

Download example PBIX file with tables and code

 

Add a step for the Table2 query :

 

= Table.ReorderColumns(Source,Table.ColumnNames(Table1))

 

 

regards

 

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


View solution in original post

1 REPLY 1
PhilipTreacy
Super User
Super User

Hi @MadhuKumar 

 

Download example PBIX file with tables and code

 

Add a step for the Table2 query :

 

= Table.ReorderColumns(Source,Table.ColumnNames(Table1))

 

 

regards

 

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


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.

Top Solution Authors