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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

Reply
awsiya
Helper I
Helper I

Reordering Columns in Field pane (powerbi Desktop)

Hi,

I require a bit of assistance, hoping it won't require too much of your time.

I have a straightforward table loaded into Power BI Desktop (sourced from a simple Excel file). Once I've imported the data into Power BI, I proceed to reorder the table using the Query Editor. I notice the table rearranges accordingly within the Query Editor. However, I also wish to reorder the same columns in the Field Pane on the right-hand side (within the data view). When attempting to drag columns up or down in the Field Pane, it doesn't allow for this adjustment. How can I resolve this issue so that the Field Pane columns reflect the same order I've arranged them in?

Columns before reordering are
Address | Name | Zip | DOB | Language | Marital | Gender

 

and Columns after reordering should be
Name | DOB | Gender | Marital | Address | Zip | Language

Source (Excel) table example below

AddressNameZipDOBLanguageMaritalGender
MarylandJack256521945EnglishMarriedMALE
New YorkJosh245251972ChineseSingleFEMALE
HawaiiManan352451985JapanesSingleFEMALE
TaxasAbraham365251997SpanishMarriedMALE
WashingtonHussain252252002ArabicMarriedFEMALE






1 ACCEPTED SOLUTION

Hi @awsiya ,

 

The order in the field pane is alphabetical while the order in the data/table view is as in my previous reply.










Did I answer your question? Mark my post as a solution!


Proud to be a Super User!









"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

View solution in original post

4 REPLIES 4
danextian
Super User
Super User

Hi @awsiya ,

While you can re-order the column in the query editor, it doesn't neccessarily affect the orders in the table/data view. The order follows the original order when the data was initially loaded. Columns created after that, either in M or DAX, are added to the rightmost part of the table. If you want to follow the order in the query editor, you will need to  unload the table and then reload it back.  Similar ideas have already been raised which you can vote for.

https://ideas.fabric.microsoft.com/ideas/search-ideas/?q=column%20order 










Did I answer your question? Mark my post as a solution!


Proud to be a Super User!









"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.
v-cgao-msft
Community Support
Community Support

Hi @awsiya ,

Please use the Table.ReorderColumns() Fuction:

 

= Table.ReorderColumns(PreviousStepsName,{"Name", "DOB", "Gender", "Marital", "Address", "Zip", "Language"})

Table.ReorderColumns - PowerQuery M | Microsoft Learn

 

vcgaomsft_0-1708492813505.png

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum -- China Power BI User Group

Thanksm but this doens not change the order in Field pane in powerBi (which is on the righ hand side).

Hi @awsiya ,

 

The order in the field pane is alphabetical while the order in the data/table view is as in my previous reply.










Did I answer your question? Mark my post as a solution!


Proud to be a Super User!









"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Helpful resources

Announcements
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

Check out the October 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

Find out what's new and trending in the Fabric Community.