In case you missed the announcement: Alteryx One is here, and so is the Spring Release! Learn more about these new and exciting releases here!
Free Trial

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!

NicoleMA
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 @NicoleMA

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.

NicoleMA
7 - Meteor

Thanks!

Labels
Top Solution Authors