Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Need to apply a Sum for the Below Expand / Collapse
Author
Message
Posted Monday, July 22, 2013 5:17 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Tuesday, March 25, 2014 6:07 AM
Points: 8, Visits: 45
I have an expression as below..

=IIF(Fields!TypeDesc.Value = "ABC",ReportItems!Textbox98.Value,IIF(Fields!TypeDesc.Value = "CCC",(((ReportItems!Textbox98.Value-(ReportItems!Textbox86.Value-ReportItems!Textbox83.Value))*ReportItems!Textbox72.Value)/1000000),""))




For the TypeDesc = "ABC"

Summation is working fine, but for TypeDesc = "CCC" , summation is not working in the next TextBox.

Any help...
Post #1475945
Posted Monday, July 22, 2013 7:27 AM
SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Thursday, July 24, 2014 8:41 AM
Points: 2,818, Visits: 2,553
I don't see any SUM in your expression. But I have not had much luck doing conditional sum in SSRS and I usually add columns to the dataset that have the condition applied, then sum the individual columns.
Post #1476010
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse