Home » Categories » CHARTrunner

CR: Label your X-Axis with more than one identifier

Revision Date: 2009-01-29


I spoke with a customer the other day who wanted multiple labels along the x-axis of his control chart. His data set and original chart looked like this:

Notice how the x-axis labels contain ONLY the date column? He also wanted the Batch number as part of the x-axis label. In the chart definition form, you can select only a single identifier as the label as shown below:


At first I did not think we had a solution. However, the answer lies on the data definition tab. The customer had defined the chart to look directly at the data table as shown below:

This works well for most chart definitions. However, if you are willing to get your hands dirty with a little custom query work then you too can solve this problem! C’mon... give it a try it is not as painful as you think. Here is the SQL custom query that solved the problem:

Select [Date] & " - " & [Batch] as DateAndBatch, * from [Sheet1$]

Using the custom query gives you a derived column named DateAndBatch. Now, you can setup the data definition form like this:

This allows you to select DateAndBatch as an x-axis label on the control chart tab. The result is a chart like this:

Attachments Attachments
There are no attachments for this article.
Related Articles RSS Feed
CR: Some Excel Spreadsheet Values Seem To Be Missing
Viewed 2242 times since Fri, Nov 9, 2007
CR: CHARTrunner and SharePoint
Viewed 4046 times since Fri, Mar 9, 2012
CR: Too many decimal places in the chart data grid for an Excel column that is calculated by a formula
Viewed 3760 times since Fri, Nov 9, 2007
CR: Charting counted incidents
Viewed 2031 times since Thu, Feb 23, 2012
CR: A custom query for Length of Stay data
Viewed 2581 times since Fri, Nov 9, 2007
CR: Unable to fully display settings and windows
Viewed 1970 times since Fri, Jan 22, 2010
CR: Largest Subgroup Size Supported by CHARTrunner
Viewed 2056 times since Fri, Nov 9, 2007
CR: Making a chart transportable
Viewed 2149 times since Fri, Nov 9, 2007
CR: Installing CHARTrunner disables desktop wallpaper
Viewed 2099 times since Fri, Nov 9, 2007
Cr: Charting elapsed time
Viewed 2483 times since Fri, Nov 9, 2007