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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Fields Order troubles

Hello,

In a POC I have 2 small tables, in PowerQuery they are just the same script except 1 filter (one goes on 1, another on 2).

They both have a ReorderColumns in it.

But, in PowerBI Table sthe field order is different and when union a UNION this goes bananas.

2018-05-30 08_44_30-Test2Dim - Power Query Editor.png2018-05-30 08_53_24-Test2Dim - Power Query Editor.png2018-05-30 08_54_13-DaxStudio - 2.7.4.png2018-05-30 08_54_53-DaxStudio - 2.7.4.png

1 ACCEPTED SOLUTION

Hi @Anonymous,

 

I have made a test with your data sample in my site Power BI Desktop (Version: 2.58.5103.501 64-bit (May 2018)), everything works as expected.

 

Untitled.png

 

You could try to copy my query in Advanced Editor and change the data source. 

 

I have attached the test file below, you could have a reference.

 

Best Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

6 REPLIES 6
ImkeF
Community Champion
Community Champion

Why not append in the query editor instead ? (there the order of the columns doesn't matter, so you could even skip those steps):

 

image.png

 

Haven't come across this behaviour before, but maybe a

Table.Buffer(NameOfYourPreviousStep)

as the last step would help:

 

 

 

Imke Feldmann (The BIccountant)

If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!

How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries

Anonymous
Not applicable

It was in a first test to create 2 separate filters on the same table, but this approach didn't work out. But I had never had something like that before.

Appending wasn't good, I was trying to UNION the selected rows in both tables, but with the very strage effect ...

Thx 

Hi @Anonymous,

 

I have made a test with creating the script in Query Editor try to reproduce your issue, but both of my two tables have the same oder in Data View as that in Query Editor. 

 

Besides, by my test, it seems that there is no option for us to change the filed order in Data View.  I also have tested that when I rearranged the column order in Query Editor then Close && Apply, the order will not update in Data View.

 

If it is convenient, you could share a dummy pbix file which can reproduce the issue, so that I can test in my environment? You can upload it to OneDrive or Dropbox and post the link here. Do mask sensitive data before uploading.)

 

Best Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hope this works ... OneDrive

We only have OneDriveProfessional

Hi @Anonymous,

 

I have made a test with your data sample in my site Power BI Desktop (Version: 2.58.5103.501 64-bit (May 2018)), everything works as expected.

 

Untitled.png

 

You could try to copy my query in Advanced Editor and change the data source. 

 

I have attached the test file below, you could have a reference.

 

Best Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

I just started over with a the same file renamed, modified both queries in advanced query to the new filename, reloaded and it came correct.

But this was definitly PBI going bananas ...

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.

Top Solution Authors