REMOVEFILTERS DAX Function (Filter)

Clear filters from the specified tables or columns.

Syntax

REMOVEFILTERS ( [<TableNameOrColumnName>] [, <ColumnName> [, <ColumnName> [, … ] ] ] )
Parameter Attributes Description
TableNameOrColumnName Optional

The name of an existing table or column.

ColumnName Optional
Repeatable

A column in the same base table.

Remarks

REMOVEFILTERS is an alias for ALL, but it can be used only as a CALCULATE modifier and not as a table expression like ALL .

» 3 related articles
» 1 related function

Examples

-- Filter Litware/Red
EVALUATE
CALCULATETABLE (
    SUMMARIZE ( 'Product', 'Product'[Category], 'Product'[Brand], 'Product'[Color] ),
    Product[Brand] = "Litware",
    Product[Color] = "Red"
)

-- Remove Red filter, as a result the filter is Litware only
EVALUATE
CALCULATETABLE (
    CALCULATETABLE (
        SUMMARIZE ( 'Product', 'Product'[Category], 'Product'[Brand], 'Product'[Color] ),
        REMOVEFILTERS ( 'Product'[Color] )
    ),
    Product[Brand] = "Litware",
    Product[Color] = "Red"
)


Category Brand Color
Home Appliances Litware Red
Category Brand Color
TV and Video Litware Silver
Home Appliances Litware Silver
Home Appliances Litware Blue
Home Appliances Litware White
Home Appliances Litware Red
TV and Video Litware Black
Home Appliances Litware Black
Home Appliances Litware Green
Home Appliances Litware Orange
Home Appliances Litware Pink
Home Appliances Litware Yellow
Home Appliances Litware Purple
TV and Video Litware Brown
Home Appliances Litware Brown
Home Appliances Litware Grey
-- Filter Litware/Red
EVALUATE
CALCULATETABLE (
    SUMMARIZE ( 'Product', 'Product'[Category], 'Product'[Brand], 'Product'[Color] ),
    Product[Brand] = "Litware",
    Product[Color] = "Red"
)

-- Remove all the filters from Product: as a result, both Litware and Red filters are removed
EVALUATE
CALCULATETABLE (
    CALCULATETABLE (
        SUMMARIZE ( 'Product', 'Product'[Category], 'Product'[Brand], 'Product'[Color] ),
        REMOVEFILTERS ( 'Product' )
    ),
    Product[Brand] = "Litware",
    Product[Color] = "Red"
)

Related articles

Learn more about REMOVEFILTERS in the following articles:

Related functions

Other related functions are:

Last update: Sep 12, 2021   » Contribute   » Show contributors

Contributors: Alberto Ferrari, Marco Russo

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

2018-2021 © 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.

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 REMOVEFILTERS? 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.