Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dates for Last Year 1

Status
Not open for further replies.

socalvelo

Technical User
Jan 29, 2006
128
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
 
if year({table.date}) = year(currentdate)-1 then 1

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top