The Alteryx Community is a finalist in three 2026 CMX Awards! Help us win Customer Support Community, Most Engaged Community, and User Group Program of the Year - vote now! (it only takes about 2 minutes) before January 9.
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. 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.
SOLUCIONADO

Rounding Up to Nearest Integer or Nearest multiple of 10

rushabh_shah
Asteroide

Hi Team,

 

I am performing some mathematical operation on my data and i want the final output to be rounded up to nearest integer or nearest multiple of 10. Im using this formula Round(([Tickets]/[Trans_Count]),0) and keeping data type as Double. But its giving me Null output. Can you help?

 

Regards,

Rushabh

1 RESPONDER 1
jdunkerley79
ACE Emeritus
ACE Emeritus

The Round function in Alteryx takes the multiplier. So to round to nearest integer you need:

Round(([Tickets]/[Trans_Count]),1)

If you want nearest 10 replace ,1 with ,10.

 

If you want to round up then use the ceil function. So to round up to next multiple of 10:

Ceil(([Tickets]/[Trans_Count])/10)*10

 

I did a blog on various roundings a while ago: https://jdunkerley.co.uk/2015/07/29/rounding-calculations-in-tableau-and-excel-and-alteryx/

Rótulos
Autores com maior número de soluções