Let’s talk Alteryx Copilot. Join the live AMA event to connect with the Alteryx team, ask questions, and hear how others are exploring what Copilot can do. Have Copilot questions? Ask here!
Start Free Trial

Alteryx Designer Desktop Discussions

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

Great than Less than Function

iamthejedi
5 - Atom

I want to create a field called [Value range] based on a range value from the [ Cum.acq.value] field.

 

I'm getting an error. 

 

Parse Error at char (597); Malformed If Statement (Expression #1)

 

I'm not sure why though. I'd appreciate some help.

 

Here's my function code:

 

if ([ Cum.acq.value]>= 0 and [ Cum.acq.value]< 7500) then "<7.5k"

else if ([ Cum.acq.value]> 7500 and [ Cum.acq.value]< 50000) then "<50k"

else if ([ Cum.acq.value]> 50000 and [ Cum.acq.value]< 100000) then "<100k"

else if ([ Cum.acq.value]> 100000 and [ Cum.acq.value]< 500000) then "<500k"

else if ([ Cum.acq.value]> 500000 and [ Cum.acq.value]< 1000000) then "<1m"

else if ([ Cum.acq.value]> 1000000 and [ Cum.acq.value]< 5000000) then "<5m"

else if ([ Cum.acq.value]> 5000000 and [ Cum.acq.value]< 10000000) then "<10m"

else ">10m" endif

2 REPLIES 2
Ladarthure
14 - Magnetar
14 - Magnetar

hi,

 

just remove the space between else and if it's elseif 🙂

iamthejedi
5 - Atom

Thank you!! 

Labels
Top Solution Authors