Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.
Originally posted by: tczotterForgot to mention:
You don't need an agg node here.
In Brainscript, we have variables that can hold values across rows, which is what I did with the "tag" value in my previous post.
I only update it on certain rows. Otherwise it stays the same.
That script works in a filter or agg, but filter will be faster and does not need a Group By expression.