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

How to use Running value in out of the scope

$
0
0
i have an ssrs report in which i have to calculate percentage based on cumulative sum i have revenue which i calculated based on cumulative sum=Switch(Fields!Cost_Head_Name.Value="Revenue", IIF(InScope("Month_Name1"),RunningValue(Fields!Amount.Value, Sum, "Fin_Indicator_Desc4"),0))and also total cost=Switch(Fields!Cost_Head_Name.Value<>"Revenue", IIF(InScope("Month_Name1"),RunningValue(Fields!Amount.Value, Sum, "Fin_Indicator_Desc"),0))i have to calculte percentage i.e,. (revenue-total cost)/revenuein another group "Fin_Indicator_desc3" by using the above two expressionsi tried below expression=(Switch(Fields!Cost_Head_Name.Value="Revenue", IIF(InScope("Month_Name1"),RunningValue(Fields!Amount.Value, Sum, "Fin_Indicator_Desc4"),0)))-(Switch(Fields!Cost_Head_Name.Value<>"Revenue", IIF(InScope("Month_Name1"),RunningValue(Fields!Amount.Value, Sum, "Fin_Indicator_Desc"),0)))/=(Switch(Fields!Cost_Head_Name.Value="Revenue", IIF(InScope("Month_Name1"),RunningValue(Fields!Amount.Value, Sum, "Fin_Indicator_Desc4"),0)))but iam gettingthe textbox4 has a scope parameter that is not valid for running value,row number or previous,the scope parameter must be set to a stringconstant that is equal to the name of the containing group with in tabix1how to use running value out side groupso that i can calculate percentagecan any one suggest me how to do this,,,,,,,

Viewing all articles
Browse latest Browse all 2791

Trending Articles