Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.
Originally posted by: tczotterIn Brainscript this is pretty easy.
By the way, those macros work in filters, too. The only difference between Filter and Agg is that they only get initialized once in a Filter, whereas in Agg they get initialized once per group.
Of course, an Agg with a Group By that is a constant (such as true) behaves like a filter.
I'm attaching a demo graph.
If there's a specific situation that isn't obvious, come back.
Attachments:
DemoCustomAgg.brg