Question : subtotal data set using vba

Hi All,
This question is in reference to this thread: http:Q_26292039.html.  I would like to have a subtotal row calculate at the end of the dataset for the listed column of months in the "Example-before" worksheet if the PID field is the same.  So at the end data set, whether it is 3 lines or 20, I would like the code to subtotal the columns after the last row of the data.  
Attachments:

Answer : subtotal data set using vba

something like this

=iif(Fields!LightsID.Value=1,"True group",
iif(Fields!LightsID.Value = 3,"False group",
"other group"))
Random Solutions  
 
programming4us programming4us