Hi all, I am using Crystal 8.5
I am creating a report that will show the trends in a portfolio from one month to the next. I cannot use a crosstab for this because it is going to contain other complex formulas that a crosstab cannot handle. Right now I have created a formula that is susposed to break a field out by month see below:
Here is the formula for Dec 2002
If {RptOSFlux.Date} = CDateTime (2002, 12, 31, 00, 00, 00) then {RptOSFlux.TOTAL}
Else 0
Now, here is the formula for Jan 2003
If {RptOSFlux.Date} = CDateTime (2003, 01, 31, 00, 00, 00) then {RptOSFlux.TOTAL}
ELSE 0
As you can see the formulas and fields the formulas are based on are identical. I am getting my Dec 2002 numbers without a problem. For some reason I am getting $0's for my January 2003 numbers (when in fact that is incorrect). The strange thing about this is that I am only getting $0's in the groups that had a $ amount for December. If the group did not have a true $ amount for December, then my January 2003 $'s run fine.
Does anyone know what could be causing this. I am so irritated right now I could scream!!
I am creating a report that will show the trends in a portfolio from one month to the next. I cannot use a crosstab for this because it is going to contain other complex formulas that a crosstab cannot handle. Right now I have created a formula that is susposed to break a field out by month see below:
Here is the formula for Dec 2002
If {RptOSFlux.Date} = CDateTime (2002, 12, 31, 00, 00, 00) then {RptOSFlux.TOTAL}
Else 0
Now, here is the formula for Jan 2003
If {RptOSFlux.Date} = CDateTime (2003, 01, 31, 00, 00, 00) then {RptOSFlux.TOTAL}
ELSE 0
As you can see the formulas and fields the formulas are based on are identical. I am getting my Dec 2002 numbers without a problem. For some reason I am getting $0's for my January 2003 numbers (when in fact that is incorrect). The strange thing about this is that I am only getting $0's in the groups that had a $ amount for December. If the group did not have a true $ amount for December, then my January 2003 $'s run fine.
Does anyone know what could be causing this. I am so irritated right now I could scream!!