To create a table from another table in Power BI, you must use a DAX (Data Analysis Expressions) calculated table. You achieve this by navigating to the Modeling tab, selecting New Table, and entering a DAX expression that references your source table. This method allows you to create subsets, filtered versions, or summarized versions of your original data without altering the raw source files, providing a layer of abstraction that is useful for complex modeling.
What You'll Need
- Power BI Desktop installed on your computer.
- An existing dataset already loaded into your Power BI model via Power Query or DirectQuery.
- A basic understanding of DAX syntax, specifically how to reference table names and column names.
- The exact name of the source table you wish to duplicate, filter, or transform.
- Knowledge of your data structure so you know which columns are appropriate for your new table.
Step-by-Step
- Open your Power BI Desktop file: Launch the application and ensure your data model is fully loaded. You should see your tables listed in the "Data" pane on the right side of the interface.
- Navigate to the Modeling Tab: Look at the top ribbon menu in Power BI Desktop. Click on the "Modeling" tab. Note that depending on your specific version or update cycle, the layout might differ slightly, but the "New Table" button is a core feature located within this section.
- Initiate the New Table command: Click on the "New Table" button. This action will activate the formula bar at the top of the report canvas. This bar is where you will write the DAX expression that defines the content of your new table.
- Enter your DAX expression: You cannot simply click a button to "copy" a table; you must provide a logical instruction. Depending on your specific objective, use one of these standard DAX patterns:
- To create an exact duplicate: Type
= 'SourceTable'. Replace 'SourceTable' with your actual table name. This is useful for creating a snapshot of data at a specific point in time during the refresh cycle. - To create a filtered subset: Type
= FILTER('SourceTable', 'SourceTable'[Category] = "Electronics"). This creates a new table containing only the rows where the Category column equals "Electronics". - To create a unique list of values: Type
= VALUES('SourceTable'[CustomerID]). This is a fundamental step when building a Star Schema, as it allows you to extract a unique list of IDs to create a dimension table. - To create a summarized/grouped table: Type
= SUMMARIZE('Sales', 'Sales'[Region], "Total Revenue", SUM('Sales'[Amount])). This collapses your granular data into a higher level of aggregation, which can improve report performance for specific high-level views. - To combine tables: Type
= UNION('Table1', 'Table2'). This stacks two tables on top of each other, provided they have the same number of columns and matching data types.
- To create an exact duplicate: Type
- Commit the expression: Once you have typed your formula, press the Enter key on your keyboard or click the checkmark icon located to the left of the formula bar. If there is a syntax error, Power BI will display a red underline or an error message below the bar.
- Verify the new table: Look at the "Data" pane on the right. You should see a new table icon appearing with the name you provided in your DAX formula. Click on the table name to view the data in the "Data view" (the table icon on the left sidebar) to ensure the rows and columns match your expectations.
Common Mistakes
The most common error is attempting to use a calculated table to perform heavy data cleaning. Calculated tables are processed during the data refresh cycle, not during user interaction. If you use a calculated table to filter out millions of rows of unnecessary data, you are still technically loading that data into the model's memory first. It is always more efficient to perform filtering and transformations in the "Transform Data" (Power Query) environment. Use Power Query for structural changes, such as removing columns or changing data types, and use DAX calculated tables for modeling logic that requires relationships between existing tables.
Another mistake is the creation of circular dependencies. This occurs when Table B is created based on Table A, but Table A contains a calculated column that relies on a value from Table B. This creates a logic loop that Power BI cannot resolve, resulting in a critical error that prevents the model from refreshing. To avoid this, ensure your data flow is unidirectional: Source Data → Power Query Transformations → Original Model Tables → DAX Calculated Tables.
Users frequently forget that calculated tables do not automatically inherit the relationships of the source table. If you create a filtered version of a 'Sales' table using the FILTER function, the new table is a standalone entity. You must manually go to the "Model view" and re-establish any relationships between your new table and your existing dimension tables (such as 'Date', 'Customer', or 'Product'). If you skip this step, your visuals using the new table will not respond correctly to slicers or filters applied to other tables in your model.
Advanced Modeling Patterns with Calculated Tables
Beyond simple duplication, calculated tables serve several advanced architectural purposes in Power BI. One of the most powerful uses is the creation of a "Bridge Table" in a many-to-many relationship scenario. If you have two tables that cannot be directly related due to the granularity of the data, you can use = DISTINCT('TableA'[CommonID]) to create a bridge table that sits between them, allowing filters to flow correctly through the model.
Another pattern is the creation of a "Disconnected Table" for parameter selection. For example, if you want to allow a user to choose between different calculation methods (such as switching a visual between "Total Sales" and "Total Profit"), you can create a small, manual table using the = DATATABLE() function. This table contains only the names of the calculations. You then use a measure with a SWITCH(SELECTEDVALUE(...)) pattern to respond to the user's selection. This is a sophisticated way to add interactivity to a dashboard without adding complex slicers to the main data model.
Finally, calculated tables are essential for "Role-Playing Dimensions." If you have a single 'Date' table but your 'Sales' table has multiple date columns (such as 'Order Date', 'Ship Date', and 'Due Date'), you might want to create separate date tables for each role. You can create a 'Ship Date' table by using = 'Date' and then renaming it, or by using a CALENDAR() function to create a specific range. This allows you to relate the 'Ship Date' table specifically to the 'Ship Date' column in your fact table, ensuring that time-based intelligence works correctly for shipping metrics.
Tips
To maintain a high-performance model, use the "New Table" function primarily for creating "Dimension Tables." For example, if you have a massive 'Sales' fact table with millions of rows, you can use = DISTINCT('Sales'[ProductID]) to create a dedicated 'Product' dimension table. This follows the Star Schema best practice, which optimizes the VertiPaq engine's ability to compress data and speeds up visual rendering.
When creating tables for time intelligence, always prioritize built-in DAX functions over manual data entry. Instead of manually copying a date column from a spreadsheet, use = CALENDARAUTO(). This function scans your entire model for date columns and automatically generates a continuous date table covering all relevant years. This ensures your new table is a robust, continuous date table, which is a mandatory requirement for functions like SAMEPERIODLASTYEAR or TOTALYTD.
If you find yourself creating multiple versions of the same table, ask yourself if you actually need a new table or if you simply need a new "Measure." Measures are calculated on the fly and do not take up additional storage space in the same way that a physical calculated table does. Only create a new table if you specifically need to use it as a slicer, a legend, or as a source for a relationship in the Model view.
Troubleshooting
If your formula returns an error, check the following in order:
- Syntax and Naming: Ensure all table names are enclosed in single quotes (e.g.,
'Sales Data') if they contain spaces, and all column names are enclosed in square brackets (e.g.,[Revenue]). A missing bracket or quote is the most common cause of immediate failure. - Data Type Mismatches: If you are using the
= FILTERfunction, ensure the value you are filtering for matches the data type of the column. For example, do not try to filter a numeric column using a string value in quotes (e.g.,[ID] = "101"instead of[ID] = 101). This will result in an error or an empty table. - Circular Dependency: If you receive a circular dependency error, it means your new table is trying to use a column that is itself calculated based on the new table. You must simplify your logic or move the calculation to a different stage of the data pipeline.
- Empty Results: If the table is created successfully but appears empty, your filter criteria are likely too restrictive. Try removing the filter part of your DAX expression to see if the base table appears, then gradually re-add your conditions to identify which specific condition is returning zero rows.
- Memory Limits: If Power BI crashes or hangs when creating a table, you may be attempting to create a Cartesian product (using
CROSSJOIN) that is too large for your system's RAM. Check the size of the tables you are joining.
Frequently Asked Questions
Does a calculated table increase my file size?
Yes. Unlike measures, which are calculated in memory during report interaction, calculated tables are stored in the model's compressed memory. Every row and column you create in a new table adds to the overall footprint of your .pbix file. Monitor your file size if you are creating many large calculated tables.
Can I use a calculated table in Power Query?
No. Power Query (M language) and DAX are two different engines. Power Query runs during the data load process to prepare the data, whereas DAX calculated tables are created after the data has been loaded into the model. You cannot reference a DAX table inside the Power Query editor.
What is the difference between DISTINCT and VALUES?
Both return a unique list of values. However, VALUES includes a "blank row" if there are referential integrity issues (e.g., a value exists in a fact table that does not exist in the dimension table), whereas DISTINCT does not. Use VALUES if you need to capture those orphan rows for troubleshooting.
Why can't I see my new table in the Report View?
First, ensure you have committed the formula by pressing Enter. If the formula bar still shows your code, the table hasn't been generated. Second, check the "Data" pane on the right; if you have many tables, you may need to scroll down or check if the table has been hidden via the "Hide in report view" option.
Can I create a table from two different tables?
Yes. You can use UNION to stack them vertically, CROSSJOIN to create every possible combination of rows, or NATURALINNERJOIN to join them based on common column names. Ensure the data types of the columns you are joining or stacking are compatible.