Creating histograms

Concept Information

HISTOGRAM command

Creating a histogram groups the records in a table, counts the number of records in each group, and displays the groups and counts in a vertical bar chart.

You can group the records:

  • Based on identical values in a character field (similar to classifying)
  • Into equal-sized, or custom-sized, numeric intervals (similar to stratifying)

Break field available for some output formats

In addition to a bar chart, you can also output the results to screen, to a text file, or to print. When outputting results in these formats, you can optionally break down the results based on the values in a character field, such as customer ID or transaction type. For this option to yield meaningful results, the character field you use for the breakdown must be sorted prior to creating the histogram.

Subtotaling numeric fields

Unlike the other grouping operations in Analytics, histograms do not support subtotaling numeric fields.

Histograms and sorting

You can create a histogram using sorted or unsorted tables. When you use an unsorted table Analytics automatically sorts the output results in ascending order as part of creating the histogram.

Steps

You can create a histogram that groups the records in a table and displays the groups in a bar chart.

You can group the records:

  • Based on identical values in a character field
  • Into equal-sized, or custom-sized, numeric intervals