Showing error while editing and updating

The function is working but I want this expression to work only while adding. But this function is working even while updating. how can i fix it.

Capture.PNGUPDATE ERROR.PNG

Solved Solved
0 3 62
1 ACCEPTED SOLUTION

If a record is being added, then it won't exist in the table until the form is saved. That means you can spot an update with the following because the row will exist in the table:

ISNOTBLANK(
  FILTER(
    "My Table",
    ([_THISROW].[_ROWNUMBER] = [_ROWNUMBER])
  )
)

 

View solution in original post

3 REPLIES 3

If a record is being added, then it won't exist in the table until the form is saved. That means you can spot an update with the following because the row will exist in the table:

ISNOTBLANK(
  FILTER(
    "My Table",
    ([_THISROW].[_ROWNUMBER] = [_ROWNUMBER])
  )
)

 

@graham_howe Thank you!

Shorter:

NOT(IN([_ROWNUMBER], My Table[_ROWNUMBER]))
Top Labels in this Space