Quantcast
Channel: SQLServerCentral » Reporting Services » Reporting Services » Latest topics
Viewing all articles
Browse latest Browse all 2791

How to remove #error in ssrs report

$
0
0
i have an ssrs report......where i have to calculate percentageiam able to calculate percentagebut my problem iam getting infinity and #error valuesi tried to eliminate 'infinity' i got successbut iam unable to eliminate #errori wrote below expression=switch(Parameters!Month_Quarter.Value="Quarterly", IIF((switch(Fields!Fin_Indicator_Desc.Value="Actuals",(CDec(Join(LookupSet(Fields!Financial_Quarter.Value, Fields!Financial_Quarter.Value,Code.FormattedString(Fields!Amount___Revenue.Value), "DataSet_Actual_Quarter_Revenue"), Constants.VbCrLf))-Sum(Fields!Amount.Value))/ CDec(Join(LookupSet(Fields!Financial_Quarter.Value, Fields!Financial_Quarter.Value,Code.FormattedString(Fields!Amount___Revenue.Value), "DataSet_Actual_Quarter_Revenue"), Constants.VbCrLf)), Fields!Fin_Indicator_Desc.Value="Budget",(CDec(Join(LookupSet(Fields!Financial_Quarter.Value, Fields!Financial_Quarter.Value,Code.FormattedString(Fields!Amount___Revenue.Value), "DataSet_Budget_Quarter_Revenue"), Constants.VbCrLf))-Sum(Fields!Amount.Value))/ CDec(Join(LookupSet(Fields!Financial_Quarter.Value, Fields!Financial_Quarter.Value,Code.FormattedString(Fields!Amount___Revenue.Value), "DataSet_Budget_Quarter_Revenue"), Constants.VbCrLf)), Fields!Fin_Indicator_Desc.Value="Forecast",(CDec(Join(LookupSet(Fields!Financial_Quarter.Value, Fields!Financial_Quarter.Value,Code.FormattedString(Fields!Amount___Revenue.Value), "DataSet_Forecast_Quarter_Revenue"), Constants.VbCrLf))-Sum(Fields!Amount.Value))/ CDec(Join(LookupSet(Fields!Financial_Quarter.Value, Fields!Financial_Quarter.Value,Code.FormattedString(Fields!Amount___Revenue.Value), "DataSet_Forecast_Quarter_Revenue"), Constants.VbCrLf)))) Like "*Infinity*",0, (switch(Fields!Fin_Indicator_Desc.Value="Actuals",(CDec(Join(LookupSet(Fields!Financial_Quarter.Value, Fields!Financial_Quarter.Value,Code.FormattedString(Fields!Amount___Revenue.Value), "DataSet_Actual_Quarter_Revenue"), Constants.VbCrLf))-Sum(Fields!Amount.Value))/ CDec(Join(LookupSet(Fields!Financial_Quarter.Value, Fields!Financial_Quarter.Value,Code.FormattedString(Fields!Amount___Revenue.Value), "DataSet_Actual_Quarter_Revenue"), Constants.VbCrLf)), Fields!Fin_Indicator_Desc.Value="Budget",(CDec(Join(LookupSet(Fields!Financial_Quarter.Value, Fields!Financial_Quarter.Value,Code.FormattedString(Fields!Amount___Revenue.Value), "DataSet_Budget_Quarter_Revenue"), Constants.VbCrLf))-Sum(Fields!Amount.Value))/ CDec(Join(LookupSet(Fields!Financial_Quarter.Value, Fields!Financial_Quarter.Value,Code.FormattedString(Fields!Amount___Revenue.Value), "DataSet_Budget_Quarter_Revenue"), Constants.VbCrLf)), Fields!Fin_Indicator_Desc.Value="Forecast",(CDec(Join(LookupSet(Fields!Financial_Quarter.Value, Fields!Financial_Quarter.Value,Code.FormattedString(Fields!Amount___Revenue.Value), "DataSet_Forecast_Quarter_Revenue"), Constants.VbCrLf))-Sum(Fields!Amount.Value))/ CDec(Join(LookupSet(Fields!Financial_Quarter.Value, Fields!Financial_Quarter.Value,Code.FormattedString(Fields!Amount___Revenue.Value), "DataSet_Forecast_Quarter_Revenue"), Constants.VbCrLf))))))can any one please suggest me how to eliminate #error

Viewing all articles
Browse latest Browse all 2791

Trending Articles