Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

IF and IF then put X or IF then put X Help!

NicoleAM
7 - Meteor

 

I have issues forming expressions especially If/Then! I've made several iterations of this but here is the last one I made. Can someone help me correct it?

 

 

IF [DMA Name]="Multi" && [Vendor State] = "ME" THEN "Maine" ELSEIF [Vendor State] = "NH" THEN "New Hampshire"
ELSEIF [DMA Name] ENDIF

 

Thanks!

3 REPLIES 3
JohnJPS
15 - Aurora

Hi @NicoleAM

Try changinge the last "ELSEIF" to  a catch-all "ELSE" ...

 

IF [DMA Name]="Multi" && [Vendor State] = "ME" THEN 
  "Maine" 
ELSEIF [Vendor State] = "NH" THEN 
  "New Hampshire"
ELSE
  [DMA Name] 
ENDIF

 

JoeM
Alteryx Alumni (Retired)

Duplicate answer removed.

NicoleAM
7 - Meteor

Thanks!

Labels