AZdesertdog
IS-IT--Management
Using cr10 with MSSQL db.
I must have something wrong with my structure of the following if/then statement. If I individually comment out all but one of the 4 conditions and add the totals I get my desired results, but when they are all in the formula I get a much smaller number than expected. Any help would be appreciated. Thanks.
if
({InvPayorAllView.ReSequenceNumber}=0)
or
(isnull ({Header.FirstBillDate}) and {InvPayorAllView.ReSequenceNumber}=10)
or
(({Header.LastBillDate}={Header.PrivatePayDate})and {InvPayorAllView.ReSequenceNumber}=10)
or
({Header.LastBillDate}={InvPayorAllView.LastBillDate})
then {Header.CurrentBalance}else 0
I must have something wrong with my structure of the following if/then statement. If I individually comment out all but one of the 4 conditions and add the totals I get my desired results, but when they are all in the formula I get a much smaller number than expected. Any help would be appreciated. Thanks.
if
({InvPayorAllView.ReSequenceNumber}=0)
or
(isnull ({Header.FirstBillDate}) and {InvPayorAllView.ReSequenceNumber}=10)
or
(({Header.LastBillDate}={Header.PrivatePayDate})and {InvPayorAllView.ReSequenceNumber}=10)
or
({Header.LastBillDate}={InvPayorAllView.LastBillDate})
then {Header.CurrentBalance}else 0