Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

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
21 - Polaris

@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