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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

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

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

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.