Apr 27, 2010 #1 socalvelo Technical User Joined Jan 29, 2006 Messages 128 Location US CR11 Oracle DB I need a formula that will return all dates from {date.field} for last year so I can count incidents occurring last year for a chart //@ incidents last year if {table.date} in LastYear then 1 else 0
CR11 Oracle DB I need a formula that will return all dates from {date.field} for last year so I can count incidents occurring last year for a chart //@ incidents last year if {table.date} in LastYear then 1 else 0
Apr 27, 2010 1 #2 lbass Technical User Joined Feb 9, 2002 Messages 32,818 Location US if year({table.date}) = year(currentdate)-1 then 1 -LB Upvote 0 Downvote