In professional Power BI projects, data often arrives in a single "flat" file (like a CSV export). This lesson explains how to normalize that data: splitting one file into multiple Dimension Tables and a central Fact Table using Power Query and MERGE.
To turn one messy file into a Star Schema, follow these steps:
OrderID, ProductName, CustomerName, Amount
1, Laptop, Rahul, 2000
2, Mobile, Neha, 1500
3, Laptop, Rahul, 3000
See how a Flat File transforms into a Normalized Fact Table.
Step 0: Original Flat File
| OrderID | CustomerName | Amount |
|---|---|---|
| 1 | Rahul | 2000 |
| 2 | Neha | 1500 |
| 3 | Rahul | 3000 |
Dim_Customers, Fact_Sales).Dim_Product.Dim_Product, keep only the Product column and click Remove Duplicates.