I am using CR8.5.
I have 4 running totals that sum salary of an individual by month. I have hardcoded Month in each running total. For now I have only 4 running totals so I am running my report for Jan, Feb, Mar and April.
I have a formula on the report say
//@SumOfMonths
If {table.month}=2 Then [#jansalary} Else
If {table.month}=3 Then [#jansalary}+[#febsalary} Else
If {table.month}=4 Then [#jansalary}+[#febsalary}+[#marsalary}
The problem is I think formula is not evaluationg at all for any condition and returning "". I have tried IsNull at different places but still it is not giving zero when someone's salary is zero. Any idea?
I have 4 running totals that sum salary of an individual by month. I have hardcoded Month in each running total. For now I have only 4 running totals so I am running my report for Jan, Feb, Mar and April.
I have a formula on the report say
//@SumOfMonths
If {table.month}=2 Then [#jansalary} Else
If {table.month}=3 Then [#jansalary}+[#febsalary} Else
If {table.month}=4 Then [#jansalary}+[#febsalary}+[#marsalary}
The problem is I think formula is not evaluationg at all for any condition and returning "". I have tried IsNull at different places but still it is not giving zero when someone's salary is zero. Any idea?