Storyteller
Instructor
Hello All,
I've been trying to claculate the {ChangeInUnits}that occur after my {?Fiscal Year End}. The reason is that I know what the {TotalUnits} is for Today, but I have to subtract any transactions that occured after {?Fiscal Year End}
I've created the following formula. But, I still get {TotalUnits} not {TotalUnits} less the transactions that occured after {?Fiscal Year End}
*********************
@S Closing Share Balance
If {?Fiscal Year End} < Today
Then {InvestHolding.TotalUnits}-
(If {InvestTrans.EffectDt}>{?Fiscal Year End} Then
(If{InvestTrans.TransType} in ["Dividend","Buy"]
Then {InvestTrans.ChangeInUnits}))
Else If {?Fiscal Year End} < Today
Then {InvestHolding.TotalUnits}+
(If {InvestTrans.EffectDt}>{?Fiscal Year End} Then
(If {InvestTrans.TransType} = "Sell"
Then {InvestTrans.ChangeInUnits}))
I'm using CR 7 reporting from an SQl datasource
Any help would be greatly appreciated !!
I've been trying to claculate the {ChangeInUnits}that occur after my {?Fiscal Year End}. The reason is that I know what the {TotalUnits} is for Today, but I have to subtract any transactions that occured after {?Fiscal Year End}
I've created the following formula. But, I still get {TotalUnits} not {TotalUnits} less the transactions that occured after {?Fiscal Year End}
*********************
@S Closing Share Balance
If {?Fiscal Year End} < Today
Then {InvestHolding.TotalUnits}-
(If {InvestTrans.EffectDt}>{?Fiscal Year End} Then
(If{InvestTrans.TransType} in ["Dividend","Buy"]
Then {InvestTrans.ChangeInUnits}))
Else If {?Fiscal Year End} < Today
Then {InvestHolding.TotalUnits}+
(If {InvestTrans.EffectDt}>{?Fiscal Year End} Then
(If {InvestTrans.TransType} = "Sell"
Then {InvestTrans.ChangeInUnits}))
I'm using CR 7 reporting from an SQl datasource
Any help would be greatly appreciated !!