ALLSELECTEDAPPLY DAX Function (Filter)
Modifies how filters are applied while evaluating a GROUPCROSSAPPLY or GROUPCROSSAPPLYTABLE function.
Syntax
| Parameter | Attributes | Description |
|---|---|---|
| TableExpression |
Any table expression. |
Return values
Remarks
This function is mainly used internally by Power BI to query remote models in composite models.
You use ALLSELECTEDAPPLY within the context GROUPCROSSAPPLY and GROUPCROSSAPPLYTABLE functions, to override the standard behavior of those functions.
When a filter is specified as ALLSELECTEDAPPLY, it is initially hidden in the filter context. Upon an ALLSELECTED inside CALCULATE or CALCULATETABLE, this table expression is enabled in filter context.
Examples
-- Illustrative syntax only (internal Power BI / composite model pattern).
-- ALLSELECTEDAPPLY hides the filter until ALLSELECTED runs inside CALCULATE.
-- Not evaluated on dax.do: GROUPCROSSAPPLY targets remote/composite query shapes.
EVALUATE
GROUPCROSSAPPLY (
'Date'[Year],
ALLSELECTEDAPPLY ( VALUES ( 'Product'[Category] ) )
)
Related functions
Other related functions are:
Last update: Oct 18, 2026 » Contribute » Show contributors
Contributors: Alberto Ferrari, Marco Russo
Microsoft documentation: https://learn.microsoft.com/en-us/dax/allselectedapply-function-dax