<@UBD3M3TPA> If you don't mind having postgres sql...
# general
s
@Don If you don't mind having postgres sql in your query you could try an sqlProjection?
Copy code
def currentMax= critBuilder.list{
  projections{
     sqlProjection "MAX(CAST (REGEXP_REPLACE(setCalibValue,'^([0-9]+).*\$','\\1','g') as INTEGER))", 'maxSetCalibValue', INTEGER
  }
}
👍 1