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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
AlB
Super User
Super User

Possible to rearrange columns in a table?

Hi all,

 

Two questions:

 

1. Is it possible to move one column to another place in a table in Power BI? Imagine you have a table with many columns and you want to add a new calculated column. This gets added at the end of the table. It would be nice if it can be placed somewhere else, for example next to the columns used for calculating the new column.

Is that possible at all?

 

2. Is there any way to mark/highlight/color the calculated columns to that they can be readily differentiated from the original data columns (imported)

 

Thanks very much 

5 REPLIES 5
Iden
Frequent Visitor

Another long winded way is to remake all your columns, copy the column definition, rename the orignal column as it doesnt like columns with the same name, create a new column, paste the original definition, delete the renamed original. its not ideal and long winded but its all ive found that can work whilst avoiding creating more tables.

 

Greg_Deckler
Super User
Super User

At the present time I am not aware of solution to either of those. For the first one, you could potentially create a new table based on the original table using SELECTCOLUMNS and put them in the order you want.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Thanks @Greg_Deckler

As to using SELECTCOLUMNS, if the table is large, with many columns, it would be quite time consuming wouldn't it?

Oh yes, it's a terrible idea quite honestly, but technically a way to do it if you don't mind duplicating all of your data, increasing your data load times and creating a maintenance nightmare. 🙂


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Sounds like a dream solution Smiley Very Happy

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors