Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sum a "variable"??? field 1

Status
Not open for further replies.

basbrian

Programmer
Feb 18, 2002
49
AU
Hi, This my first attempt at a report. Firstly I have written a fairly complicated stored procedure to extract the data I want and this is held on the SQL server. Secondly in the report I am executing the SP to get the data.
In this data I have a field called status that I have placed onto a table. I have also added another column with the following in it.
Code:
=iif (Fields!status.Value = "Received",1,0)

I want to sum this column but I can not work out how to reference it. This is probably pretty simple but for a newbie that does not know what I am doing .....
 
In this case, I would open up the DataSet tab in your toolbar. Right click your DataSet name and add a new field with your formula. In your details, you can reference this new field by the field name--as opposed to creating the formula in the text box. In your groupings, you can aggregate this new field.
 
Thanks River Guy, now that I know how to do this, I will do the male thing and now go and read the manual :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top