0
0
Power BIbi_tool~10 mins

Column operations (rename, remove, reorder) in Power BI - Cell-by-Cell Formula Trace

Choose your learning style9 modes available
Sample Data

This table shows products with their IDs, names, categories, and prices.

CellValue
A1ProductID
B1ProductName
C1Category
D1Price
A2101
B2Pen
C2Stationery
D21.5
A3102
B3Notebook
C3Stationery
D33.0
A4103
B4Mug
C4Kitchen
D45.0
Formula Trace
Table.RenameColumns(Table.RemoveColumns(Table.ReorderColumns(Source, {"ProductName", "Category", "Price", "ProductID"}), {"ProductID"}), {{"ProductName", "ItemName"}})
Step 1: Table.ReorderColumns(Source, {"ProductName", "Category", "Price", "ProductID"})
Step 2: Table.RemoveColumns(step1_result, {"ProductID"})
Step 3: Table.RenameColumns(step2_result, {{"ProductName", "ItemName"}})
Cell Reference Map
    A          B           C         D
1 ProductID  ProductName  Category  Price
2    101        Pen    Stationery    1.5
3    102    Notebook    Stationery    3.0
4    103        Mug      Kitchen     5.0

Arrows:
Source columns: A1:D4
Reorder uses B1, C1, D1, A1
Remove uses A1
Rename uses B1
The formula uses columns ProductName (B), Category (C), Price (D), ProductID (A) for reorder; removes ProductID (A); renames ProductName (B) to ItemName.
Result
    A         B          C
1 ItemName  Category   Price
2 Pen       Stationery  1.5
3 Notebook  Stationery  3.0
4 Mug       Kitchen    5.0
The final table shows columns reordered to ItemName (renamed from ProductName), Category, and Price. ProductID is removed.
Sheet Trace Quiz - 3 Questions
Test your understanding
Which column is removed in the formula?
ACategory
BProductID
CPrice
DProductName
Key Result
Reorder columns, then remove unwanted columns, then rename columns as needed.