A "One Big Table" (OBT) approach in Power BI achieves a simplified data model by flattening multiple related tables into a single, wide table. This removes the need for complex relationships and simplifies DAX calculations by eliminating the need for functions like RELATED() or CALCULATE() across different tables. To achieve this, you must merge your dimension tables into your fact table using the Power Query editor before loading the data into the model.

What You'll Need

  • Power BI Desktop installed on your machine.
  • A dataset consisting of at least one Fact table (containing quantitative data like sales or temperatures) and one or more Dimension tables (containing descriptive data like product names, dates, or customer details).
  • A common key (ID column) that exists in both the Fact and Dimension tables to allow for merging.

Step-by-Step

  1. Open Power Query Editor: Launch Power BI Desktop and click on the "Transform Data" button in the Home ribbon. This opens the Power Query Editor window where all data shaping occurs. Note that menu labels may vary slightly depending on your version or region.
  2. Identify Your Tables: Locate your primary Fact table (e.g., "Sales") and your Dimension tables (e.g., "Products", "Customers", "Geography"). Ensure that each Dimension table has a unique primary key that corresponds to a foreign key in the Fact table.
  3. Initiate the Merge: Select the Fact table from the Queries pane on the left. In the Home ribbon, find the "Merge Queries" dropdown. Select "Merge Queries as New" if you want to keep the original Fact table intact, or "Merge Queries" to modify the existing table directly.
  4. Configure the Join: In the Merge window, the Fact table is already selected in the top dropdown. Select the desired Dimension table from the second dropdown. Click on the matching key column in both table previews (e.g., click "ProductID" in the Sales table and "ProductID" in the Products table). Ensure the Join Kind is set to "Left Outer," which keeps all rows from the Fact table and matches them with data from the Dimension table. Click OK.
  5. Expand the Merged Column: After merging, a new column will appear at the end of your Fact table containing "Table" values. Click the small expand icon (two arrows pointing outward) in the top-right corner of the column header. Uncheck "Use original column name as prefix" to keep your column names clean, and select only the descriptive columns you actually need for your reports (e.g., "Product Name", "Category", "Color"). Click OK.
  6. Repeat for All Dimensions: Repeat steps 3 through 5 for every Dimension table that needs to be integrated into the OBT. For example, merge the "Customer" table to get customer names and the "Store" table to get location data.
  7. Remove Redundant Keys: Now that the descriptive data is in the main table, the original foreign key columns (like "CustomerID" or "StoreID") are often no longer needed for reporting. Right-click these columns and select "Remove" to reduce the table width and memory footprint.
  8. Apply and Close: Once all dimensions are flattened into the Fact table, click "Close & Apply" in the top-left corner of the Power Query Editor. Power BI will now load this single, wide table into the data model.
  9. Verify the Model: Go to the Model view (the relationship icon on the far left). You should now see one single table instead of a complex web of relationships.

Common Mistakes

One of the most frequent errors is merging too many columns from the Dimension tables. While OBT simplifies the model, adding 50 columns of metadata that you never use in a visual increases the file size and slows down report performance. Only expand the columns necessary for filtering, slicing, or grouping.

Another common mistake is using the wrong Join Kind. If you use an "Inner Join" instead of a "Left Outer Join," any row in your Fact table that does not have a corresponding match in the Dimension table will be deleted entirely. This leads to "missing data" errors where your total sales figures in the OBT are lower than they were in the original source.

Users also often forget to remove the original ID columns. Keeping multiple ID columns (e.g., ProductID, CustomerID, OrderID) after the merge adds unnecessary bulk to the model without providing any analytical value, as the descriptive names are now present.

Tips

To optimize performance, perform your merges as early as possible in the data pipeline. If you are using SQL Server, it is significantly faster to create a View in the database that performs the JOINs before the data even reaches Power BI. This shifts the processing load from your local machine to the server.

Use a consistent naming convention during the expansion step. Since you are removing the "prefix" option, ensure that if two tables both have a column named "Name," you rename them to "Customer Name" and "Product Name" immediately within Power Query to avoid confusion in the report view.

Consider the "Star Schema" alternative if your dataset grows to millions of rows. While OBT is excellent for smaller datasets or specific reporting needs, the Star Schema (keeping dimensions separate) is generally more memory-efficient for massive volumes of data because Power BI's compression engine works better on narrow tables with high cardinality.

Troubleshooting

If your data appears to be duplicating after a merge, check your Dimension table for duplicate keys. A "One-to-Many" relationship is expected, but if your Dimension table has the same ID listed twice, the merge will create a duplicate row for every match found in the Fact table, artificially inflating your totals. To fix this, go to the Dimension table in Power Query, right-click the ID column, and select "Remove Duplicates" before performing the merge.

If the "Close & Apply" process is taking an extremely long time or crashing, you may be hitting memory limits. Try reducing the number of columns you expand from the Dimension tables. If the problem persists, check if you have any complex transformations (like custom columns or conditional logic) happening after the merge; moving these transformations to the individual tables before the merge can sometimes improve speed.

If you see "null" values in the expanded columns, this indicates that the ID in the Fact table does not exist in the Dimension table. Verify that both columns are of the same data type (e.g., both are Whole Numbers). If one is "Text" and the other is "Number," the merge will fail to find matches even if the digits look the same.

Frequently Asked Questions

Does One Big Table make DAX easier?

Yes, because you no longer need to use the RELATED() function to pull a value from a dimension table into a measure. All attributes are in the same row, so simple aggregations work immediately.

Will OBT slow down my report?

For small to medium datasets, it often feels faster because there are no relationship lookups. However, for very large datasets, it can increase memory usage because descriptive text is repeated for every single row in the Fact table.

Can I still use a Date Table with OBT?

Yes. Even with an OBT approach, it is highly recommended to keep a separate, dedicated Calendar table to utilize Power BI's built-in Time Intelligence functions like SAMEPERIODLASTYEAR.

Is OBT better than a Star Schema?

It depends on the use case. OBT is better for simplicity and rapid prototyping. Star Schema is better for scalability, enterprise-level data volumes, and maximizing the efficiency of the VertiPaq compression engine.

What happens to my filters in OBT?

Filters work exactly the same way. Instead of dragging a field from a "Product" table into a slicer, you simply drag the "Product Name" column from your single big table.