KevinJ of Kansas
10/20/2021, 9:52 PMGregory Jones
10/21/2021, 12:19 PMcase when {systemnotes.type} = 'Set' then {systemnotes.newvalue}
would accomplish getting the first value of a field.KevinJ of Kansas
10/22/2021, 2:22 PMGregory Jones
10/22/2021, 2:26 PMDECODE(MAX({linesystemnotes.oldvalue}) KEEP(DENSE_RANK FIRST ORDER BY {linesystemnotes.date}),NULL,MAX({linesystemnotes.newvalue}) KEEP(DENSE_RANK FIRST ORDER BY {linesystemnotes.date}),MAX({linesystemnotes.oldvalue}) KEEP(DENSE_RANK FIRST ORDER BY {linesystemnotes.date}))