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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
FCD
Regular Visitor

Moving a column at a specific place (column B) without Permutation

Dear All,

How to move a column at a specific place. i.e. after a column called Id.

I just don’t want to move it beacuse the quantity and the names of the columns before are variable in my code.

 

Thank you for your help.

Best Regards

2 REPLIES 2
FCD
Regular Visitor

I meant I did not want to drag and drop my column because the advanced Editor write the code like

Table.ReorderColumns(#"RenamedCol",{"Id", "MovedColName", "C1", "C2", "C3", "...", "Cn"})

The quantity and the names of columns C1 to Cn are variable according to a combination.

That's why I wish I could place the column MovedColName at a second position indepndant from C1, C2, etc.

Thank you for your help.

 

AlienSx
Super User
Super User

Table.ReorderColumns(tbl, {"called Id", "column_name"})

but wait.. "I just don't want to move it..." at the same time sounds strange

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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