Trying to have a function that says if parameter = container make group#1 {tablename.container_name} else if parameter = vessel make group#1 {tablename.vessel_name. I want the user to be able to view report either by the container name within the vessel name or by the vessel name within the container name thanks for any suggestions