ISAFTER DAX Function (Information)

Returns true if the list of Value1 parameters compares strictly after the list of Value2 parameters.


ISAFTER ( <Value1>, <Value2> [, [<Order>] [, <Value1>, <Value2> [, [<Order>] [, … ] ] ] ] )
Parameter Attributes Description
Value1 Repeatable

Expression to be compared with second parameter.

Value2 Repeatable

Expression to be compared with first parameter.

Order Optional

The order to be applied. 0/FALSE/DESC – descending; 1/TRUE/ASC – ascending.

Return values

Scalar A single boolean value.

Returns TRUE when the set of values passed as arguments in Value1 is “greater than” the set of values passed as arguments in Value2.


Usually this function is evaluated in a filter condition during an iteration, applying it to the current row context. However, ISAFTER uses the existing evaluation context, so any row context must be created outside of ISAFTER, which is not an iterator.

A blank value is matched with BLANK(), in this comparison a blank and an empty string are considered as different values and an empty string is after a blank in ascending order.


The following query filters the months greater than October 2008 by using the ISAFTER function in the filter condition of FILTER.

        'Date'[Calendar Year],
        'Date'[Month Number]
        'Date'[Calendar Year], "CY 2008", ASC,
        'Date'[Month Number], 10, ASC
    'Date'[Calendar Year],
    'Date'[Month Number]

Related functions

Other related functions are:

Last update: Jan 23, 2021   » Contribute   » Show contributors

Contributors: Alberto Ferrari, Marco Russo

2018-2021 © SQLBI. All rights are reserved. Information coming from MSDN 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.


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.


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


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.


Want to improve the content of ISAFTER? 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.