Alteryx Designer Desktop Discussions

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

Round off

SiddeshDhruva
7 - Meteor

Hi, I am looking for a similar solution but in a different output, i want to split my data as below 

 

1, Decimal value

2, Scenario 1 - Nearest "0"

3, Scenario 2 - Nearest "10"

4, Scenario 3 - Nearest "100"

 

below is the example:

Spend number Decimal Value  Scenario 1(Nearest "0")  Scenario 2, Nearest 10  Scenario 3, Nearest 100 
141.340.34141140100

 

please suggest

 

Thank you!

4 REPLIES 4
atcodedog05
22 - Nova
22 - Nova

Hi @SiddeshDhruva 

 

Here is how you can do it. By using round() function.

 

atcodedog05_0-1622134785879.png

 

Hope this helps 🙂

 

SiddeshDhruva
7 - Meteor

Thank you! it worked, however for nearest 10 section, i want the formula to round down to near 10, ex: if the spend is 117 it should round down to 110 instead 120, is there any tweak in the formula?

atcodedog05
22 - Nova
22 - Nova

Hi @SiddeshDhruva 

 

Here is how you can do. I am dividing it by 10 finding the lower bound decimal of the value and the multiply by 10. Same strategy for 100.

 

Workflow:

atcodedog05_0-1622137218839.png

 

Hope this helps 🙂

SiddeshDhruva
7 - Meteor

awesome:) exactly the same I wanted, thanks a ton:)

Labels