Hi,
Could someone help me with modifying this formula.
if {message_stats.msg_transmission_date} >= DATEADD ("m", -12, CURRENTDATE-day(currentdate))+1 and
{message_stats.msg_transmission_date} < maximum(lastfullmonth) + 1 then {message_stats.msg_premium}
This returns a value if the date is within the last 12months to the the end of last full month.
I just need a variant of this that would do it for the year before, e.g. if i ran it today, October 2010, then it would return value with the date range of October 1st 2008 to end September 2009.
Thanks it advance to all for your help.
Could someone help me with modifying this formula.
if {message_stats.msg_transmission_date} >= DATEADD ("m", -12, CURRENTDATE-day(currentdate))+1 and
{message_stats.msg_transmission_date} < maximum(lastfullmonth) + 1 then {message_stats.msg_premium}
This returns a value if the date is within the last 12months to the the end of last full month.
I just need a variant of this that would do it for the year before, e.g. if i ran it today, October 2010, then it would return value with the date range of October 1st 2008 to end September 2009.
Thanks it advance to all for your help.