Thanks for helping out.
The data is grouped by Category Name (categorynm), then by Driver Name (drivernm).
For example:
categorynm, drivernm
Customers, Express
Customers, Regular
Customers, Service Center
Sales, Express
Sales, Regular
Sales, Service Center
There is a single value for each combination for each day.
categorynm, drivernm, forecastdt, forecastamt
Customers, Express, Sunday, 1893
Customers, Express, Monday, 1411
Customers, Express, Tuesday, 1158 etc...
Customers, Regular, Sunday, 459
Customers, Regular, Monday, 511
Customers, Regular, Tuesday, 642 etc...
I'm not grouping by date. My approach was to list the days in separate fields in a table. I would check the dayofweek and if it matches the day specified then set the value. The reason I'm doing this is because there is one combination that needs to add 3 values together, all other combinations will be set to the forecastamt for that day.
If I get the variables set properly then I can add them together later on in the report.
The group footer (drivernm) would look like this:
=IIf(Fields!categorynm.Value = "Customer Service" AND Fields!drivernm.Value = "Sales" AND Sum(Fields!forecastamt.Value)>0 AND Weekday(Fields!forecastdt.Value) =1,
Code.GetSalesExpD1() + Code.GetSalesRegD1() + Code.GetSalesSCD1(), Code.GetSalesD1)