NEQ (!=)
NEQ('Node1', 'Node2')
'Node1' != 'Node2'
The NEQ function compares the rows of two inputs and returns true (1) if the values are not equal and false (0) otherwise.
Use this function when you need a 1/0 flag to mark mismatching values between two inputs.
Parameters
- Node1Node referenceRequired
- First input node, specified using the node name in single quotes (e.g.
'Profit'). - Node2Node referenceRequired
- Second input node.
Watch out
- A row that exists in only one of the two inputs is still compared. The missing side counts as 0, so the row comes back as
1unless the value that is there is also 0. Nothing is dropped. - Because of that, a gap and a genuine mismatch look identical in the result. If you use NEQ to reconcile two nodes, check first that both cover the same rows, for example with FINDMISSING.
Examples
Checking whether matching rows are different
This example compares two input nodes row by row. The result returns 1 where the values differ and 0 where they are equal.
Input node: 'A'
| Year | Value |
|---|---|
| 2025 | 400 |
| 2026 | 700 |
| 2027 | 850 |
| 2028 | 500 |
Input node: 'B'
| Year | Value |
|---|---|
| 2025 | 350 |
| 2026 | 400 |
| 2027 | 850 |
| 2028 | 600 |
Formula: NEQ('A', 'B')
| Year | NEQ Result |
|---|---|
| 2025 | 1 |
| 2026 | 1 |
| 2027 | 0 |
| 2028 | 1 |