Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

Alteryx Designer Desktop Discussions

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

help error formula IF

Oumag
6 - Meteoroid

Hello, i need your help. i want to make a formula if but i have an error message. 

 

This is my formula : 

IF [categorie_carriere_indiciaire]="CATEGORIE A"

THEN "Catégorie A"

ELSE IF [categorie_carriere_indiciaire]="CATEGORIE B"

THEN "Catégorie B"

ELSE IF [categorie_carriere_indiciaire] IN ("CATEGORIE C", "CATEGORIE X")

THEN "Catégorie c"

ELSE [categorie_carriere_indiciaire]

ENDIF

 

This is the error message : "error d'analyse au caractère (276) : instruction if incorrectement formée (expression n 1)"

Oumag_0-1647514957936.png

 

 

 

 

 

2 REPLIES 2
binuacs
20 - Arcturus

@Oumag 

IF [categorie_carriere_indiciaire]="CATEGORIE A"
THEN "Catégorie A"
ELSEIF [categorie_carriere_indiciaire]="CATEGORIE B"
THEN "Catégorie B"
ELSEIF [categorie_carriere_indiciaire] IN ("CATEGORIE C", "CATEGORIE X")
THEN "Catégorie c"
ELSE [categorie_carriere_indiciaire]
ENDIF
Oumag
6 - Meteoroid

It's OK thanks a lot !!!

Labels