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. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

need to apply formula to each field as per numeric value

 

PLEASE HELP.  GOT A CERTAIN FORMULA FOR DATA IN 5-6 COLUMNS ALL NUMERIC  . NOW BASED ON NUMERIC VALUE, NEED TO APPLY DIFFERENT MARGIN

 

1 REPLY 1
Luke_C
17 - Castor
17 - Castor

Hi @AdityaGuptaToyoEng 

 

Just looking at it there are a few syntax errors in the formula (extra parenthesis, etc). The error in your screenshot is because of this piece of the formula: Round([_CurrentField_)*1.2,10))  The red parenthesis is actually ending the round function, which is unexpected for Alteryx. 

 

 

Try this and let me know if it works, otherwise please accept the solution!

 

 

if [_CurrentField_]<=600000 then Round([_CurrentField_]*1.2,10)



elseif [_CurrentField_]>600000 and [_CurrentField_]<1200000 then Round([_CurrentField_]*1.1,10)



else null() // You need an else clause here, I put null but replace with something suitable for you.


endif

 

 

Labels
Top Solution Authors