Valid if not already in row

I am having an issue that I can’t resolve.
I have a VALID IF that works as expected.

NOT(IN([ITEM #],INVENTORY[ITEM # ))

if someone enter a value that is already entered…the correct message comes up PRIOR to submitting form.
3X_e_6_e6b5e2a2690ae3c6da2a0bd0f2f3eb2744de2321.png

the problem I have is that i cannot edit row because I still get the same error message.

i do have one that work but the error message only comes up on form submit.
NOT( IN( [_THIS] , SELECT( INVENTORY[ITEM #] , [ITEM # VIN] <> [_THISROW].[ITEM #] ) ) )

what am I missing…

Solved Solved
0 2 146
1 ACCEPTED SOLUTION

Steve
Platinum 4
Platinum 4

This this:

ISBLANK(
  FILTER(
    "INVENTORY",
    AND(
      ([_ROWNUMBER] <> [_THISROW].[_ROWNUMBER]),
      ([ITEM #] = [_THISROW].[ITEM #])
    )
  )
)

Or this:

ISBLANK(
  FILTER(
    "INVENTORY",
    ([ITEM #] = [_THISROW].[ITEM #])
  )
  - LIST([_THISROW])
)

View solution in original post

2 REPLIES 2

Steve
Platinum 4
Platinum 4

This this:

ISBLANK(
  FILTER(
    "INVENTORY",
    AND(
      ([_ROWNUMBER] <> [_THISROW].[_ROWNUMBER]),
      ([ITEM #] = [_THISROW].[ITEM #])
    )
  )
)

Or this:

ISBLANK(
  FILTER(
    "INVENTORY",
    ([ITEM #] = [_THISROW].[ITEM #])
  )
  - LIST([_THISROW])
)

1st one…thanks

ISBLANK(
FILTER(
“INVENTORY”,
AND(
([_ROWNUMBER] <> [_THISROW].[_ROWNUMBER]),
([ITEM #] = [_THISROW].[ITEM #])
)
)
)

Top Labels in this Space