ShawnGray
asked on
SSRS Expression
I'm stumped.
[ContMax] =IIF(Fields!TradeAmount.Va lue>Fields !MTA.Value ,0,Fields! TradeAmoun t.Value)
Details
MTA is based on a parameter (= 6500 in this case) @MaxTradeAmt
TradeAmount is from transactions for various accounts.
If TradeAmount > parameter MTA the it should be set to 0 and add up with any other tradeamounts for the [Year] (my column head).
Results
Inconsistent. What I find is if more than one TradeAmount in a given year is greater that 6500 I get an Error.
If I only have 1 TradeAmount that exceeds 6500 the result is accurately shown as 0.
Anytime all TradeAmounts are less less that 6500 they Sum correctly.
Any thoughts would be appreciated.
[ContMax] =IIF(Fields!TradeAmount.Va
Details
MTA is based on a parameter (= 6500 in this case) @MaxTradeAmt
TradeAmount is from transactions for various accounts.
If TradeAmount > parameter MTA the it should be set to 0 and add up with any other tradeamounts for the [Year] (my column head).
Results
Inconsistent. What I find is if more than one TradeAmount in a given year is greater that 6500 I get an Error.
If I only have 1 TradeAmount that exceeds 6500 the result is accurately shown as 0.
Anytime all TradeAmounts are less less that 6500 they Sum correctly.
Any thoughts would be appreciated.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
We aim to please!
ASKER