Below is a formula I created to evaluate each row in a table and bring back the correct row due to the criteria (but I was having trouble doing so):
if {schedlog.audittype_id} = 2 then date({schedlog.scheduled_datetime})
else
if (date({schedlog.scheduled_datetime}) <> date(previous({schedlog.scheduled_datetime}))and {schedlog.reschedreason_id} in 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22)
then date({schedlog.scheduled_datetime})
I was trying to get the report to return the correct row but I realize that I want to return the correct group with this formula. I tried to place this formula in Group Selection (instead of Row Selection)but I keep getting this message: This function can not be used b/c it must be evaluated later with "previous({schedlog.scheduled_datetime})" highlighted.
Is there a way to return the correct group based on the formula above?
Basically, I want the correct schedlog.schedlog_id (GH3 in report)to return if the schedlog.audittype_id = 2 or if schedlog.scheduled_datetime is different from the previous row where only the date is different (I don't care if the time changed) and the schedlog.reschedule_id is 1-22.
if {schedlog.audittype_id} = 2 then date({schedlog.scheduled_datetime})
else
if (date({schedlog.scheduled_datetime}) <> date(previous({schedlog.scheduled_datetime}))and {schedlog.reschedreason_id} in 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22)
then date({schedlog.scheduled_datetime})
I was trying to get the report to return the correct row but I realize that I want to return the correct group with this formula. I tried to place this formula in Group Selection (instead of Row Selection)but I keep getting this message: This function can not be used b/c it must be evaluated later with "previous({schedlog.scheduled_datetime})" highlighted.
Is there a way to return the correct group based on the formula above?
Basically, I want the correct schedlog.schedlog_id (GH3 in report)to return if the schedlog.audittype_id = 2 or if schedlog.scheduled_datetime is different from the previous row where only the date is different (I don't care if the time changed) and the schedlog.reschedule_id is 1-22.