Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
GELÖST

Multiple IF Formula Or any suggestive formula that could work

geeklarokcmie
Asteroid

Good afternoon Alteryx Experts,

 

I have five columns as listed below and I'm looking to get the values in new columns : "Unassigned_Inactive_Assignee" and "Unassigned_Inactive_Reporter"

 

The formula must emit a result based on the below condition:

  • when the assignee contains [X] then it should output inactive_assignee
  • and when the assignee is empty then it should output unassigned_assignee
  • and when the above conditions are not met it should emit the assignee name "as is"

Same goes for the Reporter.

 

Defect IDAssigneeReporterUnassigned_Inactive_AssigneeUnassigned_Inactive_Reporter
113John, Doe Stevie, DoeJohn, DoeStevie, Doe
145  Unassigned_AssigneeUnassigned_Reporter
1789Jill, DoeDane, Doe [X]Jill, DoeInactive_Reporter
156Jack, Doe [X] Inactive_AssigneeUnassigner_Reporter

 

Thank you in advance. :)

2 ANTWORTEN 2
lwolfie
Feuerball

It would require 2 formulas.  One for each column.  For the Unassigned_Inactive_Assignee column, Use

If isempty([Assignee]) then "Unassigned_Asignee"

Elseif Contains([Assignee],"[X]") Then "Inactive_assignee"

Else [Assignee]

ENDIF

 

You might have to use isblank instead of empty.  It depends on how your data is set up.

geeklarokcmie
Asteroid

@lwolfie That worked like a charm. Thank you :)

Beschriftungen