Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Trying to Reorder Columns in Data View in Power BI

Is there a way I can reorder columns in 'Data View' within Power BI? I tried doing it in Power Query first but when the data loads into the table, the columns automatically rearrange.

like image 398
Ifad Noor Avatar asked Jan 24 '19 19:01

Ifad Noor


People also ask

Can you reorder columns in Data view Power BI?

Use the function 'SELECTCOLUMNS' to create a copy of the original table and reorder the columns in it.

How do I reorder columns in Power BI report view?

Drag the required column and Drop at the position you want to place. For the Power BI reorder columns demonstration purpose, we are dragging Country Column to the second position (after geography Key). Now you can see the State in the third position.

How do I change the order of columns in a column in Power BI?

If you Shift + click a second time on the same column, this will change the sort direction (ascending, descending) for that column.


1 Answers

It is extremely stupid way, but it is working - i found it by accident:

  1. In edit query view remove the column, then save changes. You will see that in data view that column was removed as well.
  2. Now again in edit query view remove from applied steps the action that removed the column. Save it again.
  3. You will see that removed previously column was added to the end of the table.
  4. This way you can arrange your columns to have it the way you want it in data view.

Hope it helped.

like image 116
bryniek Avatar answered Nov 09 '22 10:11

bryniek