I've got two formulas...
//@CurrentYear
if {Table.Date} >= date(year(currentdate),01,01)
then year({Table.Date})
//@OneYearAgo
if {Table.Date} >= date(year(currentdate)-1,01,01) and {Table.Date} <= date(year(currentdate)-1,12,31)
then year({Table.Date}
The first formula is returning the current year of 2010 but the second formula is returning 0 instead of 2009.
Can someone explain?
//@CurrentYear
if {Table.Date} >= date(year(currentdate),01,01)
then year({Table.Date})
//@OneYearAgo
if {Table.Date} >= date(year(currentdate)-1,01,01) and {Table.Date} <= date(year(currentdate)-1,12,31)
then year({Table.Date}
The first formula is returning the current year of 2010 but the second formula is returning 0 instead of 2009.
Can someone explain?