Updates related to tabulating data by group

exploring tabular and aggregate and finding index for maximum values