Prevent Duplicate Values Valid_If

Hi, I have 2 columns [Tested Date] (Which I have concatenated as text i.e โ€œJun 2019โ€) and column [Asset ID]. I would like to write a valid_if constraint within the [Asset ID] column to prevent anyone accidentally typing in the same [Asset ID] on the same date. Is this possible? If so how do I write the expression.

Thanks

Antony

0 2 442
2 REPLIES 2

In Valid_If, put this:

NOT(IN([Asset ID], SELECT(TableName[Asset ID], [Tested Date]=[_THISROW].[Tested Date])))

Excellent, thanks

Antony

Top Labels in this Space