Group columns in dynamic tables