Ten-Minute Tips – Report Writer, Part 2
In part 1 of this 2-part series, I demonstrated how to use the CRM 4.0 Report Writer to create charts that illustrate how your data are distributed across categories. It’s relatively straightforward when you’ve got numeric data that can be “summarized”, but a little less obvious when you don’t.
For example, what if you want a count rather than a sum? Here are some of the more frequent examples I see of this requirement:
- Contacts by sales rep
- Cases by case type or category
- Accounts by industry or territory
The built-in Report Writer doesn’t have a “count” function, so you need something you can sum up. I do this with a custom attribute. Here’s a heuristic step-by-step approach (using the Account by Territory example), that I demonstrate in the video below:
- Create a custom attribute on Account, call it “counter”.
- Give it a type of “int”, max and min values of 1.
- Create an automatic workflow on the create trigger to set the value to 1 for new account records going forward.
- Figure out the best way to populate that value into already existing records (I use a workflow in the video)
- Then create the report, using the same steps I showed in part 1. This figure shows the most important step of the Report Wizard, the “Lay Out Fields” dialog:

Here’s the video. Enjoy!




Brought to you by Richard Knudson and IMG.