I am currently building reports and have a need to Group columns dynamically, depending on user's choice. Now, assuming that the situation is fixed on all columns, the query would be as follows:...var groupedInvoiceItems = invoiceItems.GroupBy(x => new { ...