Group by help

Yes. You need to set up a ScriptColumn:

https://www.gpsoft.com.au/help/opus12/index.html#!Documents/Scripting/ScriptColumn.htm

Here's an example you could modify: