Adding a gift count to a report

Hello! (are y'all sick of my questions about custom reports yet? :-) )

Thanks to the help of several members of this group, I was able to get my first custom report up and running. Woohoo! Of course, now I've been asked to add one more field -- a contribution/gift count. The report is based on the Current Constituent Giving by List standard report. I've tried looking at other reports with counts and have tried to create a new calculated field based on an existing field, but I'm getting an error message. Has anyone included this kind of field in a custom report? Do I need to add anything to the stored procedure? (which I tried doing but that didn't seem to help either). I can always kick this over to consulting, but it is so much more satisfying to do it myself.

Thanks!
Anne Robichaux

Parents Reply Children
  • Well, there are always ways around that if you want to find them.  The easiest in SSRS would be to add a header/footer to the group and use the aggregate there.  You could also put the calculated field somewhere outside of the grouping, hide that cell and then essentially REFERENCE that cell using "ReportItems!" where you want it to go.  Or you could just do it in SQL and select that additional column as well.

    There are almost always multiple ways to do something.  It depends where you want to do the majority of your calculation work.  I tend to do about 95% of my work in SQL and save the SSRS work for VERY simple things like calculating column or row totals.  For counts, I almost always do that in the SQL as there is usually something I want to ensure against.  E.g. duplicate customers, orders, performances, etc...  And I can be more confident in my results if I do it in the SQL rather than depend on the SSRS report to parse it correctly.

  • Thank you! That is very helpful. I'm going to keep working on my SQL and see if I can sort it out.