Power BI table functions are the DAX functions that return a table instead of a single value, and you use them whenever you need to build a filtered, summarized or calculated table inside a measure, a calculated table or another table expression. The shortest working path is: open your model in Power BI Desktop, decide whether you need a calculated table (Modeling > New table) or a table inside a measure, then write a DAX expression that starts with a table function such as FILTER, SUMMARIZE, SUMMARIZECOLUMNS, ADDCOLUMNS, SELECTCOLUMNS, DISTINCT, VALUES, UNION, EXCEPT or INTERSECT. This guide walks through that process, explains what each function family is for, and covers the mistakes that produce blank visuals or wrong totals.

What You'll Need

  • Power BI Desktop installed (the steps below use the desktop app; Power BI Service has a more limited formula experience and no full DAX editor for calculated tables).
  • A data model with at least one table loaded, ideally with a date table and proper relationships between fact and dimension tables.
  • Basic familiarity with DAX syntax: table names in single quotes, column references in square brackets, and commas between arguments.
  • Permission to edit the model. If the report is shared with you as a viewer, you cannot add calculated tables.

Menu labels can differ slightly between Power BI Desktop versions and regions, so if a button is not where this guide says, look for the closest equivalent in the same ribbon tab.

Step-by-Step

  1. Understand the two places table functions live. A calculated table is created once, stored in the model, and refreshed with the data. A table expression inside a measure is evaluated at query time and returns a table that another function consumes, usually inside CALCULATE. Pick the calculated table route if you need a reusable table other visuals can use; pick the measure route if you only need a number.
  2. Create a calculated table. In Power BI Desktop, go to the Modeling tab and choose New table. The formula bar opens with a placeholder name. Replace it with MyTable = followed by your table expression, then press Enter or click the checkmark to commit.
  3. Start with a simple filter. A common first expression is HighValueSales = FILTER ( Sales, Sales[Amount] > 1000 ). FILTER returns only the rows that satisfy the condition. Note that FILTER iterates row by row, so keep the condition simple on large tables.
  4. Add calculated columns to the result. Wrap the filter in ADDCOLUMNS to extend it: HighValueSales = ADDCOLUMNS ( FILTER ( Sales, Sales[Amount] > 1000 ), "Margin", Sales[Amount] - Sales[Cost] ). ADDCOLUMNS evaluates each new column in the row context of the table it receives.
  5. Summarize instead of listing rows. Use SUMMARIZE or SUMMARIZECOLUMNS when you want grouped totals: SalesByRegion = SUMMARIZE ( Sales, Customer[Region], "Total Sales", SUM ( Sales[Amount] ) ). SUMMARIZECOLUMNS is generally preferred for new work because it handles filter context more predictably and performs better on large models.
  6. Pick specific columns. Use SELECTCOLUMNS when you want a clean table with renamed columns: . This is useful for building lookup tables or simplifying a wide source table.
  7. Remove duplicates. DISTINCT returns unique rows from a table; VALUES does the same but also returns a blank row when a relationship is missing a match. Use DISTINCT when you want a strict list of existing values, and VALUES when you want the blank row included for reconciliation.
  8. Combine tables. UNION stacks tables with matching column counts, EXCEPT returns rows in the first table that are not in the second, and INTERSECT returns rows present in both. All three match columns by position, not by name, so align your SELECTCOLUMNS output carefully before combining.
  9. Use table functions inside measures. A measure such as Big Orders = COUNTROWS ( FILTER ( Sales, Sales[Amount] > 1000 ) ) returns a single number but uses a table function internally. This is the most common way table functions appear in real reports.
  10. Check the result. Calculated tables appear in the Data pane with a calculator icon next to the name. Drag a column onto a table visual to confirm the rows and values look right. If the table is empty, check the filter condition and the data types of the columns involved.
  11. Format and relate. Once the calculated table exists, set data types on its columns, and if it should participate in filtering, create relationships in Model view. Calculated tables do not inherit relationships automatically.

Common Mistakes

  • Using a single value where a table is expected. Functions like SUM or MAX return a scalar; wrapping them in a table function without a row context produces errors or unexpected blanks.
  • Forgetting that FILTER needs a table, not a column. The first argument must be a table expression. Writing FILTER ( Sales[Amount], ... ) fails because a column is not a table.
  • Assuming calculated tables refresh instantly. They refresh with the dataset. If the underlying data changes, the calculated table only updates on the next refresh.
  • Mixing up column names in UNION. UNION aligns by position, so a mismatched column order silently produces wrong values rather than an error.
  • Overusing calculated tables. Large calculated tables increase model size and refresh time. Prefer measures or Power Query transformations when the table is only needed for a single visual.
  • Ignoring filter context. A table function inside a measure sees the filter context of the visual. Results that look wrong usually mean the context is narrower or wider than expected.

Tips

  • Use DAX Studio or the formula bar's IntelliSense to check function arguments before committing a long expression.
  • Name calculated tables clearly and prefix them, for example Calc Sales Summary, so report authors know they are model objects rather than source tables.
  • Prefer SUMMARIZECOLUMNS over SUMMARIZE for new grouped tables; it is the pattern Microsoft documents for summary queries.
  • Keep FILTER conditions on columns with reasonable cardinality, and avoid wrapping entire fact tables in FILTER when a simple CALCULATE filter would do.
  • Test each table function in isolation with a small table visual before nesting it inside another function.

Troubleshooting

If the calculated table shows an error, read the message in the formula bar carefully: it usually names the exact argument that is wrong. Common fixes are adding a missing table reference, correcting a column name, or matching the number of columns in UNION, EXCEPT or INTERSECT.

If the table is created but empty, check whether the filter condition can ever be true. A text column compared to a number, or a date column compared to text, will not match. Verify data types in the Data view.

If a measure using a table function returns blank, confirm the visual actually has filter context on the relevant table. A measure that works on one visual but not another usually depends on a relationship that is missing or inactive.

If Power BI Desktop becomes slow after adding a calculated table, remove it and rebuild the logic as a measure or a Power Query step. Very large calculated tables are a common cause of slow reports.

If the New table button is greyed out, you are likely in a live connection or viewing a shared report without edit rights. You need a Desktop file with an editable model.

Frequently Asked Questions

What is the difference between a calculated table and a measure?

A calculated table is stored in the model and can be used by any visual; a measure returns a single value and is recalculated per visual. Table functions can appear in both.

Do table functions work in Power BI Service?

You can use existing measures and calculated tables in the Service, but creating new calculated tables requires Power BI Desktop with an editable model.

Which table function should I use for grouped totals?

SUMMARIZECOLUMNS is the recommended choice for new grouped tables. SUMMARIZE still works and appears in many older models.

Why does VALUES return a blank row?

VALUES includes a blank row when a relationship has unmatched values on the many side. Use DISTINCT if you want only existing values.

Can I use table functions to filter a visual directly?

Not directly. Table functions build tables or feed measures. To filter a visual, use the Filters pane or a measure that returns a value.

Do calculated tables increase file size?

Yes, they are stored in the model and add to its size, so use them only when the table is genuinely reused.