Ok so I'm taking in a parameter called 'SortField' and trying to sort the report based on that. The problem is when I try to sort on Create date, i get an error saying 'string is required here'. so I then have to put quotes around it. When I put the quotes around it, it looks at it like text and doesn't actually sort it correctly. Anyone know how I can correct this?!
if {?SortField}='Summary' then {CALL_.CALSUMMARY}
else if {?SortField}='Status' then {CALL.STATUS}
else if {?SortField}='Incident Number' then {CALL.CALLID}
else if {?SortField}='Create Date' then
'{@CreateDate}'
---------------
CreateDate formula is: HelpDeskDateFieldToDate ({CALL.CALLDAT})