FILTERCLUSTER DAX Function (Filter)
Returns a correlated join table over a set of groups.
Syntax
| Parameter | Attributes | Description |
|---|---|---|
| GroupBy_ColumnName | Repeatable |
A fully qualified column reference (Table[Column]) to a base table for which the distinct values are included in the returned table. Each GroupBy_ColumnName column is cross-joined (different tables) or auto-existed (same table) with the subsequent specified columns. |
| FilterTable | Repeatable |
A table expression participating in the join. |
| Separator |
A string literal which serves no purpose other than separating FilterTable parameter with TableScan parameter. |
|
| TableScan | Repeatable |
A table scan that joins with FilterTable parameters, applying autoexist semantics, and returns columns specified in GroupBy_ColumnName. |
Return values
A table which includes combinations of values from the supplied columns based on the grouping specified. The column only includes column specified by GroupBy_ColumnName parameter.
Remarks
This function is mainly used internally by Power BI to query remote models in composite models.
FILTERCLUSTER function can only be used inside GROUPCROSSAPPLY and GROUPCROSSAPPLYTABLE functions.
FILTERCLUSTER is semantically equivalent to a natural join across all FilterTable and TableScan parameters, and then group by columns specified by GroupBy_ColumnName parameters. Group by columns must come from TableScan parameters.
TableScan parameters are evaluated in the context of FilterTable.
FILTERCLUSTER returns an error when you use it outside GROUPCROSSAPPLY and GROUPCROSSAPPLYTABLE, for example directly in EVALUATE.
Because DAX evaluates TableScan in the filter context of FilterTable, do not use a function that removes filters in TableScan, such as ALL. With ALL, the result can include combinations of values that do not exist in the table.
Examples
-- FILTERCLUSTER works only inside GROUPCROSSAPPLY or GROUPCROSSAPPLYTABLE.
-- It joins the filter on two colors with the combinations of Color and
-- Brand that exist in Product. The result has only the 10 combinations
-- that exist, also if the expression is never blank (+ 0).
-- A CROSSJOIN of the same filters returns all the 22 combinations.
EVALUATE
GROUPCROSSAPPLY (
'Product'[Color],
'Product'[Brand],
FILTERCLUSTER (
'Product'[Color],
'Product'[Brand],
TREATAS ( { "Red", "Azure" }, 'Product'[Color] ),
"Separator",
SUMMARIZE ( 'Product', 'Product'[Color], 'Product'[Brand] )
),
"Products", COUNTROWS ( 'Product' ) + 0
)
ORDER BY
'Product'[Color],
'Product'[Brand]
| Color | Brand | Products |
|---|---|---|
| Azure | A. Datum | 14 |
| Red | Adventure Works | 6 |
| Red | Contoso | 36 |
| Red | Fabrikam | 12 |
| Red | Litware | 12 |
| Red | Northwind Traders | 3 |
| Red | Proseware | 7 |
| Red | Southridge Video | 13 |
| Red | Tailspin Toys | 6 |
| Red | Wide World Importers | 4 |
Related functions
Other related functions are:
Last update: Nov 19, 2026 » Contribute » Show contributors
Contributors: Alberto Ferrari, Marco Russo
Microsoft documentation: https://learn.microsoft.com/en-us/dax/filtercluster-function-dax