Why is my numerical column only showing 0 or 1?

This is a frequent problem with integer math (e.g. dividing two whole numbers). We’re looking to add helpers for these in the model, but this can also be avoided by multiplying by 1.0 to cast the result to a decimal. For example:

(${order_items.count} / ${order_items.order_count}) * 1.0