From some quick testing this looks like it will wo...
# general
m
From some quick testing this looks like it will work for you
TO_CHAR(MAX({trandate}), 'DD/MM/YY')
and change the field type to Formula (Text)
@mattb
m
just sat down to give this a crack
m
Nw, just making sure you saw šŸ™‚
m
ffs these unexpected errors are infuriating. how are you even suppose to troubleshoot it
i’m using this in a formula text summary max field:
DECODE({item}, 'XXX', TO_CHAR(MAX({trandate}), 'DD/MM/YY'), NULL)
and i find myself with the unexpected error
m
šŸ¤” I'm getting the same result when I try with a decode, but putting the MAX on the outside seems to work
TO_CHAR(MAX(DECODE({item}, 'XXX', {trandate}, NULL)),'DD/MM/YY')
m
well that works!
and with a date that actually looks correct
i’m also using
ROUND({today}-{trandate})
to calculate the amount of days since that product has been ordered
like so. how can i incorporate that into the formula?
assuming it would actually be pushing the luck to have a field formatted like this: {quantity} ā€˜/’ {trandate} ā€˜/’ {today}-{trandate} i suck at multi formula fields
i think
SUM(DECODE({item}, 'XXX', {quantity}, 0)) || ' / ' || (TO_CHAR(MAX(DECODE({item}, 'XXX', {trandate}, NULL)),'DD-Mon')) || ' / ' || MIN(ROUND({today}-{trandate})) || 'd'
is doing the job