Malformed If Statement
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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
Solved! Go to Solution.
- Labels:
- Bug
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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.
Alteryx ACE
https://www.linkedin.com/in/calvintangkw/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@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/
Alteryx ACE
https://www.linkedin.com/in/calvintangkw/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Why the error persist?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@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.
