Generalize time series building: metricByFactorDim()