Alteryx Designer Desktop Discussions

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

Malformed If Statement

GabrielGomes9
5 - Atom

Hi everyone, 
I can't find the error in the formula can you please help?

 

IF [3D]="431" THEN 0 ELSE
IF [3D]="453" THEN 0 ELSE
IF [Aquisição do ano?]="Y" THEN [ Movim.ValContáb]*(1/[Vida Útil em 2022]/12)*(11-[Mês alienação])ELSE
IF [Classificação PwC]="Totalmente Depreciado" THEN 0 ELSE
IF [ Fim val.cont.]= 0 THEN [ Início val.cont] ELSE (1/[Vida Útil em 2022]/12)*10*[ Val.aquis.acum.] ENDIF ENDIF ENDIF ENDIF

4 REPLIES 4
caltang
17 - Castor
17 - Castor
IF [3D]="431" 
THEN 0 
ELSEIF [3D]="453" 
THEN 0 
ELSEIF [Aquisição do ano?]="Y" 
THEN [ Movim.ValContáb]*(1/[Vida Útil em 2022]/12)*(11-[Mês alienação])
ELSEIF [Classificação PwC]="Totalmente Depreciado" 
THEN 0 
ELSEIF [ Fim val.cont.]= 0 
THEN [ Início val.cont] 
ELSE (1/[Vida Útil em 2022]/12)*10*[ Val.aquis.acum.] 
ENDIF

 

Try the above.

Calvin Tang
Alteryx ACE
https://www.linkedin.com/in/calvintangkw/
caltang
17 - Castor
17 - Castor

@GabrielGomes9 If the above solved your need, kindly like & mark as accepted solution so that you may help others find the solution more quickly + to close the thread as is. Thanks!

Best regards,
Calvin Tang
https://www.linkedin.com/in/calvintangkw/

Calvin Tang
Alteryx ACE
https://www.linkedin.com/in/calvintangkw/
GabrielGomes9
5 - Atom

Why the error persist?

harshendra
8 - Asteroid

@GabrielGomes9 in the ELSE part of the statement, you have three opening parentheses "(" but only two closing parentheses ")". Please update the formula correctly and then your error "Malformed If Statement" should be gone.

Labels