IF.EAGER DAX Function (Logical)
Checks whether a condition is met, and returns one value if TRUE, and another value if FALSE. Uses eager execution.
Syntax
Parameter | Attributes | Description |
---|---|---|
LogicalTest |
Any value or expression that can be evaluated to TRUE or FALSE. |
|
ResultIfTrue |
The value that is returned if the logical test is TRUE. |
|
ResultIfFalse | Optional |
The value that is returned if the logical test is FALSE; if omitted, BLANK is returned. |
Return values
Either ResultIfTrue or ResultIfFalse expression result, depending on LogicalTest.
Remarks
Calling IF.EAGER enforce eager evaluation of the conditional expression, instead of relying on choice between strict and eager evaluation made by the DAX engine.
The IF.EAGER was visible in the metadata only in the verified builds shown aside. It has been later removed from visible functions, even though it is still included in the engine. This function should be used only in very particular case of DAX optimization, after verifying that it produces a clear performance advantage compared to the regular IF function.
Related articles
Learn more about IF.EAGER in the following articles:
-
Understanding eager vs. strict evaluation in DAX
This article describes the differences between eager evaluation and strict evaluation in DAX, empowering you to choose the best evaluation type for your data models. » Read more
Related functions
Other related functions are:
Last update: Dec 3, 2020 » Contribute » Show contributors
Contributors: Alberto Ferrari, Marco Russo