Add fonctionnality groupBySeries and groupById

groupBySeries permit to aggregate all elements in the serie to the same row
groupById permit to aggregate all rows with the same id to an uniq row. groupById can ony be activated if groupBySeries = true.