Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
artbria
Starting Member
1 Post |
Posted - 2009-05-08 : 10:12:01
|
Hi, Am using a column to display equity % which has the calculation as below:iif( Fields!DebtEquityDistribution.Value = "Equity",Fields!CurrentMarketValueInUSD.Value/iif(Fields!DebtEquityDistribution.Value = "Equity", sum( Fields!AdjustedMarketValueInUSD.Value),Nothing),Nothing) Now, I have to display a sub-total for it as, =iif( Fields!DebtEquityDistribution.Value = "Equity",sum(Fields!CurrentMarketValueInUSD.Value)/iif(Fields!DebtEquityDistribution.Value = "Equity", sum( Fields!AdjustedMarketValueInUSD.Value),Nothing),Nothing)But, it is considering only the rows in a group for which the column equity% has valuesi.e if it is like37%blankblankit is not displaying subtotal for that group...can anyone help on this?.. |
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2009-05-08 : 13:05:58
|
shouldnt it be?=sum(iif( Fields!DebtEquityDistribution.Value = "Equity",Fields!CurrentMarketValueInUSD.Value/IIF(Fields!AdjustedMarketValueInUSD.Value>0,Fields!AdjustedMarketValueInUSD.Value,Nothing),Nothing)) |
|
|
|
|
|
|
|