Forum Discussion

RobElliott's avatar
RobElliott
Silver Contributor
Mar 03, 2021

Re: Automatically assigning a value based on another column value

NicosAcuna well you could do it with a Switch control in Power Automate as you would be just inside the 27 case limit, but it's more work than having a calculated column using multiple If expressions. So your department column would be a choice column then you'd add the following formula to your DeptID calculated column:

=If(Department="HR",1,If(Department="Operations",2,If(Department="Warehouse",3,"")))

etc etc.

 

 

Rob
Los Gallardos
Microsoft Power Automate Community Super User

8 Replies