By submitting your email address, you agree to receive emails regarding relevant topic offers from TechTarget and its partners. You can withdraw your consent at any time. Contact TechTarget at 275 Grove Street, Newton, MA.
First, you saw how to set up a bar chart in Report Builder 3.0. Then you learned how bars were similar to column and line charts. The next step involved range charts and when to use them. Finally, we've gotten to the simplest charts of all – shape charts, specifically pie and funnel formats.
Adding a pie chart to a report
A pie chart is a much simpler type of chart than any we've looked at so far. In fact, it should be simpler. The purpose of shape charts is to show simple comparisons (usually as percentages) between groups of data. If these charts get too complicated, they can lose their impact. Figure 17 shows the pie chart I've added to my report. This specific type of chart is 3-D Exploded Pie.
Notice, first, that the series value field, SalesAmount, simply uses the Sum function to aggregate the data. This is the default aggregation for numerical fields, so when you add the field to the chart data, Report Builder 3.0 automatically uses the Sum function to create the aggregation. In addition, I included the SalesGroup field in the series groups, but I added no fields to the category groups. The chart will simply show the percentage of sales per group for a specified year.
The only significant change I made to the chart after I added fields to the chart data was to add labels to the pie segments. To add labels, right-click the chart and select Show Data Labels. The labels will then be added, though,by default, the they won't show the percentage signs. You can override this behavior by configuring the label properties.
To access the properties, right-click one of the labels that appears in a pie segment, then click Series Label Properties. On the General tab of the Series Label Properties dialog box, enter the following expression in the Label Data text box:
That's all there is to setting up a pie chart. When the chart is rendered, it breaks the pie into segments, one for each sales territory, as shown in Figure 18.
Notice that a percentage value appears on each segment. As you can see, if you were to add too much information to a pie chart, it would become cluttered very quickly.
Adding a funnel chart to a report
Another type of shape chart is the funnel. You can easily switch from a pie chart to a funnel chart without making any configuration changes. Figure 19 shows the funnel chart that I inserted when I switched from the pie chart.
As you can see, the chart data looks identical to the pie chart. There is one change I made, however, that can improve the display of a funnel chart. By default, the sections of the funnel are ordered by the SalesGroup values, from A to Z. For a pie chart, this makes no difference. For a funnel chart, however, it might be better to sort the sections by the aggregated series values, SalesAmount.
To sort the funnel sections by the sales amounts, I modified the series group properties, as shown in Figure 20.
Notice that the data is now sorted by the aggregated sales amount from high to low (Z to A). This way, the group with the most sales is at the top of the funnel, and the group with the least sales is at the bottom, as shown in Figure 21.
Clearly, shape charts are easy to implement and provide a quick, basic look at important statistics. No doubt, you'll want to choose different charts for more complex data.
Report Builder 3.0 supports many varieties of charts, far more than what I've described here. For each chart, there exists an assortment of properties that offer a great deal of flexibility in how the chart is rendered in the report. Certainly, I've only scratched the surface with what you can do with charts. Even so, the examples provided here should give you a starting point for adding charts to your reports. Just remember that you can take the charts a lot further when you're ready to make the leap.
ABOUT THE AUTHOR
Robert Sheldon is a technical consultant and the author of numerous books, articles, and training material related to Microsoft Windows, various relational database management systems, and business intelligence design and implementation. You can find more information at http://www.rhsheldon.com.