C# aggregation with dynamic group stage based on params

Hi @Yannis_Ragkavas ,

Can you elaborate on the dynamic aspect? Is the condition based on application logic or some other field/some MQL? In the latter, you can use LINQ for the same like GroupBy(p => p.B ? p.X : p.Y) .

Thanks,

Rishit.