We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Round to an existing value within my data set

10005970
6 - Meteoroid

Hi all I hope you can help with the below.

I have a calculated field that returns the safety stock volume in KG of a product. EG 976  I also have a field that contains the pack size of the product in KG EG 25. I now need to calculate the safety stock value rounded by the pack size value so in this example 976 rounded to 25 = 1000. all my values are fixed decimal set to 3 decimal places. 

2 REPLIES 2
aatalai
15 - Aurora

@10005970 is that rounding to the nearest package size or rounding up? Also are there predefined packing sizes?

DataNath
17 - Castor
17 - Castor

Hey @10005970, we can use the Ceil() function for that and pass through the pack size field to use as the multiple. Here's an example using your values:

 

1313.png

Labels
Top Solution Authors