In order to find max of the date I did this in calculated field:
max(parseInt(concat(toString(extract(\'YYYY\',timestamp)), right(concat("00", toString(extr