ISONORAFTER DAX Function (Information)

Funkcja IsOnOrAfter to funkcja logiczna, która emuluje zachowanie klauzuli Start At i zwraca wartość true (prawda) w przypadku wiersza spełniającego wszystkie warunki określone w parametrach tej funkcji.

Syntax

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

Wyrażenie, które ma zostać porównane z drugim parametrem.

Value2 Repeatable

Wyrażenie, które ma zostać porównane z pierwszym parametrem.

Order Optional
Repeatable

Kolejność, która ma zostać zastosowana. 0/FALSE/DESC — malejąca; 1/TRUE/ASC — rosnąca.

Return values

Scalar A single boolean value.

Returns TRUE when the set of values passed as arguments in Value1 is “greater then or equal to” the set of values passed as arguments in Value2.

Remarks

The ISONORAFTER function emulates the behavior of a START AT clause in EVALUATE, and returns TRUE when all of the values passed as argument meet the condition specified.
Usually this function is evaluated in a filter condition during an iteration, applying it to the current row context. However, ISONORAFTER uses the existing evaluation context, so any row context must be created outside of ISONORAFTER, 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.

Examples

The following query filters the months greater than or equal to October 2008 by using the ISONORAFTER function in the filter condition of FILTER.

EVALUATE
FILTER (
    SUMMARIZE (
        'Date',
        'Date'[Calendar Year],
        'Date'[Month],
        'Date'[Month Number]
    ),
    ISONORAFTER (
        'Date'[Calendar Year], "CY 2008", ASC,
        'Date'[Month Number], 10, ASC
    )
)
ORDER BY
    'Date'[Calendar Year],
    'Date'[Month Number]

Last update: Dec 14, 2019   » Contribute   » Show contributors

Contributors: Alberto Ferrari, Marco Russo

MSDN documentation: https://docs.microsoft.com/en-us/dax/isonorafter-function-dax

DAX Conventions
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.

Contribute

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