write selection values in the correct columnStatistics