rrtraverse
Programmer
I have created a CR that pulls all loans with a trans type number 1 and 2, with trans type 1 eq "Loan Added" and trans type 2 eq "Loan Paid Off". Both of these trans types will have a date tied to the transaction which is stored in the transaction date field. How do I subtract the transaction date tied to the "Loan Paid Off" transaction from the "Loan Added" transaction date to create a "Number of Days" field.
Every loan will not have a "Loan Paid Off" transaction, so my formulas thus far are -
REPAID DATE:
if tablename.transtype} = 1 then {tablename.transaction_date} else Date(0000,00,00)
LOAN ADDED DATE:
if tablename.transtype} = 2 then {tablename.transaction_date} else Date(0000,00,00)
These two formulas are giving me a separate transaction date for these two tranactions, but then when I try to subtract LOAN ADDED DATE from REPAID DATE to get number of days, I get 0 days for all loans.
I'm sure this is something I should know, but I've tried everything I know, and can't get this to work.
Can someone help?
Every loan will not have a "Loan Paid Off" transaction, so my formulas thus far are -
REPAID DATE:
if tablename.transtype} = 1 then {tablename.transaction_date} else Date(0000,00,00)
LOAN ADDED DATE:
if tablename.transtype} = 2 then {tablename.transaction_date} else Date(0000,00,00)
These two formulas are giving me a separate transaction date for these two tranactions, but then when I try to subtract LOAN ADDED DATE from REPAID DATE to get number of days, I get 0 days for all loans.
I'm sure this is something I should know, but I've tried everything I know, and can't get this to work.
Can someone help?