SOLVED
Rounding Up to Nearest Integer or Nearest multiple of 10
Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
rushabh_shah
8 - Asteroid
‎08-03-2016
01:57 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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
Solved! Go to Solution.
Labels:
- Labels:
- Preparation
1 REPLY 1
ACE Emeritus
‎08-03-2016
02:05 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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/
