ALLCROSSFILTERED DAX Function (Filter)

Clear all filters which are applied to the specified table.

Syntax

ALLCROSSFILTERED ( <TableName> )
Parameter Attributes Description
TableName

The table that you want to clear filters on.

Remarks

ALLCROSSFILTERED can be used only as a CALCULATE modifier and cannot be used as a table function.

ALLCROSSFILTERED removes all the filters on an expanded table (like ALL) and on columns and tables that are cross-filtering the table argument because of limited (weak) relationships and/or bidirectional cross-filters set on relationships directly or indirectly connected to the expanded table.

Examples

ALLCROSSFILTERED removes the filter from the ColorGroups table that reaches Product through a limited relationship (many-to-many cardinality):

DEFINE
    MEASURE Product[#Prods] =
        COUNTROWS ( 'Product' )
    MEASURE Product[#AllProds] =
        CALCULATE ( [#Prods], ALL ( 'Product' ) )
    MEASURE Product[#AllCrossProds] =
        CALCULATE ( [#Prods], ALLCROSSFILTERED ( 'Product' ) )
EVALUATE
ADDCOLUMNS (
    VALUES ( ColorGroups[Group] ),
    "#Prods", [#Prods],
    "#AllProds", [#AllProds],
    "#AllCrossProds", [#AllCrossProds]
)
Group #Prods #AllProds #AllCrossProds
2009-01-01 135 135 2,517
2010-01-01 236 236 2,517

Last update: Mar 13, 2024   » Contribute   » Show contributors

Contributors: Alberto Ferrari, Marco Russo, Renato Lira

Microsoft documentation: https://docs.microsoft.com/en-us/dax/allcrossfiltered-function-dax

2018-2024 © SQLBI. All rights are reserved. Information coming from Microsoft documentation is property of Microsoft Corp. » Contact us   » Privacy Policy & Cookies

Context Transition

This function performs a Context Transition if called in a Row Context. Click to read more.

Row Context

This expression is executed in a Row Context. Click to read more.

Iterator

Not recommended

The use of this function is not recommended. See Remarks and Related functions for alternatives.

Not recommended

The use of this parameter is not recommended.

Deprecated

This function is deprecated. Jump to the Alternatives section to see the function to use.

Volatile

A volatile function may return a different result every time you call it, even if you provide the same arguments. Click to read more.

Deprecated

This parameter is deprecated and its use is not recommended.

DirectQuery compatibility

Limitations are placed on DAX expressions allowed in measures and calculated columns.
The state below shows the DirectQuery compatibility of the DAX function.

Contribute

Want to improve the content of ALLCROSSFILTERED? Did you find any issue?
Please, report it us! All submissions will be evaluated for possible updates of the content.


This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.