rbh123456789
Technical User
CR 11.5
I have a formula (thanks to lbass in this original post, which creates a preferred hierarchy of dates, shown below:
//This formula checks to see if date1 exists, if it doesn't date2 is shown, if date1 and date 2 are null, date3 is shown
//@dates
if isnull({view.date1}) then
(if isnull({view.date2}) then
{view.date3} else if not isnull({view.date2}) then
{view.date2}) else{view.date1}
//
I have the report grouped by CaseID (the unique identifier), and the @dates is Summarized with MIN in the group.
The issue i am faced with is that i need to add logic to the formula so it first compares date1 and date2 (if they both exist) and display the greater (most recent) date. If one of those dates are missing, use whichever one is available (either date 1 or 2). If neither date1 or date2 are available, use date3.
Any help would be greatly appreciated, as always.
I have a formula (thanks to lbass in this original post, which creates a preferred hierarchy of dates, shown below:
//This formula checks to see if date1 exists, if it doesn't date2 is shown, if date1 and date 2 are null, date3 is shown
//@dates
if isnull({view.date1}) then
(if isnull({view.date2}) then
{view.date3} else if not isnull({view.date2}) then
{view.date2}) else{view.date1}
//
I have the report grouped by CaseID (the unique identifier), and the @dates is Summarized with MIN in the group.
The issue i am faced with is that i need to add logic to the formula so it first compares date1 and date2 (if they both exist) and display the greater (most recent) date. If one of those dates are missing, use whichever one is available (either date 1 or 2). If neither date1 or date2 are available, use date3.
Any help would be greatly appreciated, as always.