add grouping to virtual columns