Question on grouping in custom functions
I'm looking to add a custom function.
The function is technically an aggregation and should be grouped by other non aggregate fields in the query.
The function takes the form of
The plan is to allow the user to pick the fields. As you can see, field1 and field2 are not aggregated themselves so I was unsure whether I should add this to the definition?
If I do, will this group by the other non aggregate fields in the query as I need?