summary_table_by function

Create a summary table using multiple rows for grouping on one target column