create a variable called vUoM for example (for Units of measure). Put it in an input box with a constraint so that it can take the value 'Carton', 'Pieces' or 'Pallet'. Always have one selected value.
have three expressions in your chart like this:
try it and see.