3 Condition in valid if

Hello guys

I have 3 columns
1- Administration No (Number) initial value (+1)
2- Administration (Enum)
3- manager (Enum)

I want write expression in valid if for column 2- Administration

What I want is

  • If i want to add a new record, it allows a new administration only and not allow to choose from the previously added.

  • if i want edit one of the previously added only allowe for new name that is not the same as the one previously added.

  • when i edit the record to edit the manager column It allows me to save the record without changing the administration column.

I hope you can help me

thank you

0 3 177
3 REPLIES 3

Pls check whether this helps @salehej

Steve
Platinum 4
Platinum 4

In the below, replace table with the name of the table.

Administration No

  • Initial value: (MAX(table[Administration No]) + 1)
  • Editable?: FALSE

Administration

  • Valid If:
    ISBLANK(
      FILTER(
        "table",
        AND(
          ([_THISROW].[Administration] = [Administration]),
          ([_THISROW].[_ROWNUMBER] <> [_ROWNUMBER])
        )
      )
    )
    

The approach to use here depends on how you want/intend to allow the user to edit the manager column.

Thanks Steve

Top Labels in this Space