IGNORE DAX Function (Table manipulation)

Tags a measure expression specified in the call to SUMMARIZECOLUMNS function to be ignored when determining the non-blank rows.

Syntax

IGNORE ( <Measure_Expression> )
Parameter Attributes Description
Measure_Expression

The Expression which needs to be ignored for the purposes of determining non-blank rows.

Return values

Scalar A single variant value.

IGNORE returns the value of the expression. SUMMARIZECOLUMNS does not use this value to remove the rows with BLANK.

Remarks

The IGNORE() syntax can be used to modify the behavior of the SUMMARIZECOLUMNS function by omitting specific expressions from the BLANK/NULL evaluation. Rows for which all expressions not using IGNORE return BLANK/NULL will be excluded independent of whether the expressions which do use IGNORE evaluate to BLANK/NULL or not.

Use IGNORE only as an expression argument of SUMMARIZECOLUMNS. In another function, for example ADDCOLUMNS, or in a measure, IGNORE returns an error. IGNORE inside another expression, such as IGNORE ( [Sales Amount] ) + 1, or inside CALCULATE, also returns an error.

IGNORE has one argument. The argument must return a single value. A table returns an error.

An ignored expression still returns its value in the rows that remain in the result.

If an expression that is not ignored returns BLANK for a row, SUMMARIZECOLUMNS removes the row. The ignored expressions do not change this. If all the expressions are ignored, SUMMARIZECOLUMNS returns all the combinations of the groupBy columns, also when all the expressions return BLANK.

» 4 related articles
» 1 related function

Examples

--  IGNORE tags a measure in SUMMARIZECOLUMNS to be ignored when
--  determining the non-blank rows.
EVALUATE
SUMMARIZECOLUMNS (
    'Date'[Calendar Year],
    "Amount", [Sales Amount]
)

EVALUATE
SUMMARIZECOLUMNS (
    'Date'[Calendar Year],
    "Amount", IGNORE ( [Sales Amount] )
)
Calendar Year Amount
CY 2007 11,309,946.12
CY 2008 9,927,582.99
CY 2009 9,353,814.87
Calendar Year Amount
CY 2005 (Blank)
CY 2006 (Blank)
CY 2007 11,309,946.12
CY 2008 9,927,582.99
CY 2009 9,353,814.87
CY 2010 (Blank)
CY 2011 (Blank)
-- IGNORE removes a measure from the check that hides the rows with BLANK.
-- Query 1: both columns count, so a year appears if Sales or Flag has a value.
-- Query 2: Sales is ignored, so only the year with a Flag value remains.
-- The ignored measure still returns its value in the rows that remain.
EVALUATE
SUMMARIZECOLUMNS (
    'Date'[Calendar Year],
    "Sales", [Sales Amount],
    "Flag", IF ( SELECTEDVALUE ( 'Date'[Calendar Year] ) = "CY 2008", 1 )
)
ORDER BY 'Date'[Calendar Year]

EVALUATE
SUMMARIZECOLUMNS (
    'Date'[Calendar Year],
    "Sales", IGNORE ( [Sales Amount] ),
    "Flag", IF ( SELECTEDVALUE ( 'Date'[Calendar Year] ) = "CY 2008", 1 )
)
ORDER BY 'Date'[Calendar Year]
Calendar Year Sales Flag
CY 2007 11,309,946.12 (Blank)
CY 2008 9,927,582.99 1
CY 2009 9,353,814.87 (Blank)
Calendar Year Sales Flag
CY 2008 9,927,582.99 1

Related articles

Learn more about IGNORE in the following articles:

Related functions

Other related functions are:

Last update: Nov 26, 2026   » Contribute   » Show contributors

Contributors: Alberto Ferrari, Marco Russo

Microsoft documentation: https://learn.microsoft.com/en-us/dax/ignore-function-dax

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

Passed by Expression

This parameter is passed by expression and can be evaluated multiple times in different evaluation contexts.

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 IGNORE? Did you find any issue?
Please, report it us! All submissions will be evaluated for possible updates of the content.