In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

Formula says Invalid type Operator

roige_28
6 - Meteoroid

I am new to creating workflows and I am getting an error when trying to change values in the same column. The result should be for amounts that are equal to or greater than 100 that the value should be 100 and if it is below 100 then it should be for the same amount. I tried this formula but keep on getting an error.

 

if [CLAIM_AMOUNT] >="120" then [CLAIM_AMOUNT] "120" else [CLAIM_AMOUNT] endif

4 REPLIES 4
binu_acs
21 - Polaris

@roige_28 

if [CLAIM_AMOUNT] >="120" then "120" else [CLAIM_AMOUNT] endif
JosephSerpis
17 - Castor
17 - Castor

Hi @roige_28 if your column/field claim amount is a numeric data type then you don't need to put quotes around 120 and can delete claim amount for the then part argument of the If formula. You only need quotes for string arguements and not numeric.

 

 

if [CLAIM_AMOUNT] >=120 then 120 else [CLAIM_AMOUNT] endif

 

flying008
15 - Aurora

Hi, @roige_28 

 

FYI.

 

Min([CLAIM_AMOUNT], 120)

 

OR

IIF([CLAIM_AMOUNT]>= 120, 120, [CLAIM_AMOUNT])
roige_28
6 - Meteoroid

Thank you everyone for your help♥

Labels
Top Solution Authors