I have a report that is grouped by bank account number and in the details section are all the transactions that occured in the time period of the report. In the details, I created two variables to store the rate of interest based on the balance in the account. If the balance is above zero, I assign the rate to the creditintrate. The other formula assigns the debitintrate if the balance is below zero.
Then in the group footer, I placed this formula to calculate prime, and it is returning 0 even though when I display the variables by themselves in the footer, it shows the correct value.
shared numberVar creditintrate;
shared numbervar debitintrate;
local numberVar prime;
if debitintrate > 0
then
prime = creditintrate + 2.25
else
prime = debitintrate - 1;
prime
Then in the group footer, I placed this formula to calculate prime, and it is returning 0 even though when I display the variables by themselves in the footer, it shows the correct value.
shared numberVar creditintrate;
shared numbervar debitintrate;
local numberVar prime;
if debitintrate > 0
then
prime = creditintrate + 2.25
else
prime = debitintrate - 1;
prime