In the Histogram dialog box, complete the following steps to specify the data for your graph. If your data are arranged differently than described below, go to Choose a histogram.
In Y variable, enter the numeric column that you want to graph.
In Group variable, enter the column of categorical data that defines the groups.
In the following worksheet, the Y variable is Torque, which contains samples of torque measurements. Machine is the group variable and indicates whether each torque measurement is from machine 1 or machine 2. The graph shows the distribution of the torque measurements for each machine.