I know you can compact a dataset, but is there a way to compact a single variable?

 

Thanks