Not equal to (<>) DAX Operator


The “not equal to” operator <> returns TRUE when the two arguments do not have the same value.
A comparison between BLANK and 0 or between BLANK and an empty string returns FALSE.
Use the == operator to treat BLANK and 0 or empty string as different values.
This operator does not perform any implicit conversion between strings, numbers, and Boolean values.
The following are valid expressions using the “not equal to” operator.

Product[Color] <> "Red"
Sales[Quantity] <> 0
Customer[LargeFamily] <> TRUE

See Handling BLANK in DAX for more details about BLANK comparisons.

Last update: Aug 9, 2022   » Contribute   » Show contributors

Contributors: Alberto Ferrari, Marco Russo, Ed Hansberry, Kenneth Barber,

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

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 Not equal to (<>)? 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.