kuberacupidagra
Programmer
Hello All,
1) I am using the following CDateTime function to get data for T_AMNT field. It gives correct values for period 1/1/2005 to 12/31/2005
@TotalYearlyAmount
if {TTFGLD106530.T_DATE} >= CDateTime(2005,01,01,00,00,00) and {TTFGLD106530.T_DATE} <=CDateTime(2005,12,31,00,00,00)
then {TTFGLD106530.T_AMNT} else 0
2) Now I am trying to get the month data for November and December and the values returned for T_AMNT are 0. I have checked in the tables and there are many values for Nov and Dec.
@Nov_Month
if {TTFGLD106530.T_DATE} >= CDateTime(2005,11,01,00,00,00) and {TTFGLD106530.T_DATE} <=CDateTime(2005,11,30,00,00,00)
then {TTFGLD106530.T_AMNT} else 0
1) I also tried using the following and T_AMNT is still 0
@Nov_Month
if {TTFGLD106530.T_DATE} >= CDateTime(2005,11,01,00,00,00) and {TTFGLD106530.T_DATE} <=CDateTime(2005,11,30,00,00,00)
then {@TotalYearlyAmount} else 0
What could I be doing wrong?
Thanks,
AA
1) I am using the following CDateTime function to get data for T_AMNT field. It gives correct values for period 1/1/2005 to 12/31/2005
@TotalYearlyAmount
if {TTFGLD106530.T_DATE} >= CDateTime(2005,01,01,00,00,00) and {TTFGLD106530.T_DATE} <=CDateTime(2005,12,31,00,00,00)
then {TTFGLD106530.T_AMNT} else 0
2) Now I am trying to get the month data for November and December and the values returned for T_AMNT are 0. I have checked in the tables and there are many values for Nov and Dec.
@Nov_Month
if {TTFGLD106530.T_DATE} >= CDateTime(2005,11,01,00,00,00) and {TTFGLD106530.T_DATE} <=CDateTime(2005,11,30,00,00,00)
then {TTFGLD106530.T_AMNT} else 0
1) I also tried using the following and T_AMNT is still 0
@Nov_Month
if {TTFGLD106530.T_DATE} >= CDateTime(2005,11,01,00,00,00) and {TTFGLD106530.T_DATE} <=CDateTime(2005,11,30,00,00,00)
then {@TotalYearlyAmount} else 0
What could I be doing wrong?
Thanks,
AA