Working with Charts¶
Ad Hoc charts are a flexible, interactive way to explore your data graphically. You can choose different levels of aggregation for drop areas, change a field from a column to a row, pivot the entire chart, hide chart values, and zoom in to see chart details.

Figure 1 Ad Hoc Editor’s Chart View for old layout band

Figure 2 Ad Hoc Editor’s Chart View for new layout band
The following sections explain how to populate, edit, and format an Ad Hoc chart. Many tasks related to working with charts are identical (or very similar) to those for tables and crosstabs. For any tasks not discussed in this section, see the information in Working with Tables.
Using Fields and Measures in Charts¶
You must add at least one measure to view a chart. Before any measures are added to the chart, the Ad Hoc Editor displays a placeholder with the legend displaying a single entry: Add a measure to continue. As you add measures, the editor displays the grand total of each measure in the chart.
The initial display reflects only the measures you add. It does not change when you add fields or dimensions. For example, for each measure you add to a bar chart, you see a bar with the total value of the measure, regardless of how many fields you add. This means you can add, remove, and arrange measures and fields without waiting for the display to update. Once you have the fields and measures you want, you can use the sliders on the right to select the level of detail you want. See “Effect of the Slider on a Chart” for more information.
All available fields are listed in the Data Selection panel, as either standard fields or measures.
-
Standard fields can be added as:
- For Old Layout Band, to a column or row.
- For New Layout Band, to the supported drop areas according to the visualization type selected.
-
Measures contain summarized values. They are typically numeric fields that determine the length of bars, size of pie slices, location of points (in line charts), and height of areas. They can be added to the drop areas, but must all be in the same target — that is:
In Old Layout Band you can add one or more measures to the chart as columns, or add one or more measures to the chart as rows, but you cannot have one measure as a column and another as a row in the same chart.
In New Layout Band, for example in Column chart you can add fields to Y-axis and/ or Columns, and add one or more measures to the Y-axis, but you cannot add measures to the Columns.
When creating a chart, keep in mind that the drop areas are arranged in hierarchies, with the highest member of the hierarchy on the left. For an Ad Hoc view based on an OLAP data source, you can change the order of distinct dimensions by dragging, but you cannot change the order of levels within a dimension. For an Ad Hoc view based on a non-OLAP data source, you can drag the field headings to rearrange the hierarchy; the highest level in a group should appear to the left; the lowest level in a group should appear to the right. For example, it doesn’t make sense to group first by postal code then by country, because each postal code belongs to only one country.
To add a field or measure to a row or column, for Old Layout Band:
- In the Data Selection panel, select the field you want to add to the chart as a group. Use Ctrl-click to select multiple items.
- Drag the selected item into the Columns or Rows box in the Layout Band.
To add a field or measure to a supported drop areas, for New Layout Band:
- In the Data Selection panel, select the field you want to add to the chart as a group. Use Ctrl-click to select multiple items.
- Drag the selected item into the supported drop areas according the visualization type selected.
Setting Levels¶
When you add a field or dimension to the drop areas, a multi-level slider located at the top of the Filters pane allows you to set the level of aggregation to use for viewing the data.
In Old Layout Band, the Data levels are rows and columns.
In New Layout Band, the Data levels are the drop area that corresponds to the visualization type you select.
The number of fields or dimensions in the drop areas, for example rows or column for any chart in Old Layout band, and Bars or X-axis, for Bar chart in New Layout Band, determines the number of levels on the slider. Measures are not reflected in the slider.
Note
You cannot adjust levels on time series charts.
In Old Layout Band, the following figure shows the effect of the slider on a chart with one level of aggregation for both rows and columns.
Columns
|
Columns
|
|
Rows
|
|
|
Rows
|
|
|
Figure 3 Effect of the Slider on a Chart (Old Layout Band) |
||
In New Layout Band, the following figure shows the effect of the slider on a chart with one level of aggregation for both Y-axis and Columns for Column chart.
Y-axis
|
Y-axis
|
|
Columns
|
|
|
Columns
|
|
|
Figure 4 Effect of the Slider on a Chart (New Layout Band) |
||
Data Level Mappings for New Layout band
Visualization Group |
Visualization Type |
Data Levels in Old Layout Band | Data Levels in New Layout Band | Mapping Old Layout Band drop areas to New Layout Band drop areas | Drill down supported drop areas |
|---|---|---|---|---|---|
Data Grid |
Cross-tab | None | None | Columns → Y-axis Rows → Columns |
Does not support drill down. |
| Table | None | None | Columns →Y-axis Rows → Columns |
Does not support drill down. | |
| Column & Bar | Column |
|
|
Columns → Y-axis Rows → Columns | Columns |
| Stacked Column | Columns Rows |
Y-axis Columns |
Columns → Y-axis Rows → Columns | Columns | |
| Percent Column | Columns Rows |
Y-axis Columns |
Columns → Y-axis Rows → Columns | Columns | |
| Bar | Columns Rows |
|
Columns → X-axis Rows → Bars | Bars | |
| Stacked Bar | Columns Rows |
|
Columns → X-axis Rows → Bars | Bars | |
| Percent Bar | Columns Rows |
|
Columns → X-axis Rows → Bars | Bars | |
| Spider Column | Columns Rows |
|
Columns → Columns Rows → Radial axis | Radial axis | |
| Line & Area | Line | Columns Rows |
|
Columns → Lines Rows → X-axis | X-axis |
| Spline | Columns Rows |
|
Columns → Lines Rows → X-axis | X-axis | |
| Area | Columns Rows |
|
Columns → Areas Rows → X-axis | X-axis | |
| Stacked Area | Columns Rows |
|
Columns → Areas Rows → X-axis | X-axis | |
| Percent Area | Columns Rows |
|
Columns → Areas Rows → X-axis | X-axis | |
| Area Spline | Columns Rows |
|
Columns → Areas Rows → X-axis | X-axis | |
| Spider Line | Columns Rows |
|
Columns → Lines Rows → Radial axis | Radial Axis | |
| Spider Area | Columns Rows |
|
Columns → Areas Rows → Radial axis | Radial Axis | |
| Dual & Multi Axis | Column Line |
|
|
Columns → Columns/Line Rows → X-axis | X-axis |
| Column Spline |
|
|
Columns → Columns/Line Rows → X-axis | X-axis | |
| Stacked Column Line |
|
|
Columns → Columns/Line Rows → X-axis | X-axis | |
| Stacked Column Spline |
|
|
Columns → Columns/Line Rows → X-axis | X-axis | |
| Multi Axis Line |
|
|
Columns → Lines Rows → X-axis |
X-axis | |
| Multi Axis Spline |
|
|
Columns → Lines Rows → X-axis |
X-axis | |
| Multi Axis Column |
|
|
Columns → Columns Rows → X-axis | X-axis | |
| Time Series | Time Series Line |
|
Columns → Lines Rows → Time axis |
Does not support drill down. | |
| Time Series Spline |
|
Columns → Lines Rows → Time axis |
Does not support drill down. | ||
| Time Series Area |
|
Columns → Areas Rows → Time axis |
Does not support drill down. | ||
| Time Series Area Spline |
|
Columns → Areas Rows → Time axis |
Does not support drill down. | ||
| Scatter & Bubble | Scatter |
|
Columns → X-axis/Y-axis/Color by Rows → Values |
Values | |
| Bubble |
|
Columns → X-axis/Y-axis/Size/Color by Rows → Values |
Values | ||
| Pie | Pie |
|
Columns → Multiples Rows → Slices | Slices | |
| Dual-level Pie |
|
|
Columns → Value Rows → Levels |
Does not support drill down. | |
| Semi-Pie |
|
Columns → Multiples Rows → Slices | Slices | ||
| Range | Heat Map |
|
Columns → Value/X-axis Rows → Y-axis | Does not support drill down. | |
| Time Series Heat Map | None | None | Columns → Value Rows → Time axis |
Does not support drill down. | |
| Dual-Measure Tree Map | None | None | Columns → Size/Color Rows → Category | Does not support drill down. | |
| Tree Map | Category | Columns → Size Rows → Category |
Category **Note** It has built-in drill down. |
||
| Parent Tree Map | Category | Columns → Size Rows → Category |
Category **Note** It has built-in drill down. |
||
| Gauge | Gauge | Multiples | Columns → Values (measures)/Multiples (fields) Rows → Unused |
Does not support drill down. | |
| Multi-Level Gauge | Multiples | Columns → Values (measures)/Multiples (fields) Rows → Unused |
Does not support drill down. | ||
| Arc Gauge | Multiples | Columns → Values (measures)/Multiples (fields) Rows → Unused |
Does not support drill down. |
To recreate this view
-
Select Create > Ad Hoc View.
-
In the Select Data wizard, select foodmart data for crosstab and click OK.
-
Click
to open the Visualization Selector. -
Click
and then Apply and Close. -
Drag the following from the Fields panel to the Layout Band:
- Store Sales from Measures to Columns. The view changes to show a column with the total. No slider is added for measures.
- Product Family from Fields to Columns. The Data Level area is shown in the Filters panel, with a Columns slider added.
- Date from Fields to Rows. A Rows slider is added to the Data Level area in the Filters panel.
-
Use the sliders to see how the view changes.
The sliders help you explore your data visually in a number of ways:- The slider reflects the hierarchy of the row or column groups, as determined by the order in which fields are arranged in the Layout Band.
- Hovering over a setting on the slider shows the name of the field or dimension corresponding to that setting.
- When you pivot a chart, slider settings are preserved and applied to the new target. For example, if you have the Row slider set to Month, the Column slider is set to Month when you pivot. See Pivoting a Chart for more information.
- When you remove the currently selected level from a row or column, the slider is reset to the total; when you remove a field that is not selected, the level remains the same. When you add a field or dimension to a row or column, the number of levels of the slider changes to reflect your addition. When you change the order of the fields in a row or column, the level on the slider changes to reflect the new level of the field corresponding to the selection.
Changing Date Grouping¶
If your chart includes data based on a date field, you can change the level of aggregation for the time data. To select the unit of time to chart:
-
Right-click on the date field in the Layout Band and select Change Grouping. Then select the time period you want from the cascading sub-menu:
-
Year
-
Quarter (examples: Q1, Q2, etc.)
Note
Quarter groups the data by quarter through the whole selected period. For example, if the period has 2 years selected, then you will see 4 quarters (Q1, Q2, Q3, Q4) and data for each year will be grouped under these 4 quarters regardless of the year it belongs to. When Quarter is the only categorizer used, the sorting order will always start from the first quarter. Also, if there is no data for a specific quarter then this quarter will still be visible with no data.
-
-
Quarter and Year (examples: Q1 2020, Q2 2020, etc.)
Note
As of version 9.0, Quarter is renamed to Quarter and Year. Quarter and Year groups the data by quarter and year. For example, if the period has 2 years selected, then you will see potentially 8 quarters (for example, Q1 2020, Q2 2020, Q3 2020, Q4 2020, Q1 2021, Q2 2021, Q3 2021, Q4 2021), and data for each year will be grouped under its own quarter which will take into account the year as well. Also, if there is no data for a specific quarter, then this quarter will not be visible.
This date is required in order to create PeriodToPeriod (PTP) and YearToDate (YTD) charts.
-
Month (examples: January, February, etc.)
-
Month and Year (examples, January 2020, February 2020, etc.)
Note
As of version 9.0, Month is renamed to Month and Year. This date is required in order to create PeriodToPeriod (PTP) and YearToDate (YTD) charts.
-
Day
-
Hour
-
Minute
-
Second
-
Hour By Day
-
Minute By Day
-
Second By Day
-
Millisecond By Day
-
Day of Week
The view updates to reflect the new date grouping.
Note
Time Series charts can use only day, or smaller, intervals.
Changing the Summary Function of a Measure¶
You can get a new view of your data by changing the summary function of a measure, for example, from sum to average. To select a new summary function for a measure:
- Right-click on the measure in the Layout Band and select Change Summary Function. Then select the function you want from the cascading submenu. The view updates to reflect the new summary function.
Pivoting a Chart¶
You can pivot a chart in two ways:
- Pivot the entire chart by clicking
. The row and column groups switch places; slider levels are maintained. The following figure shows the effect of pivoting a basic column chart.

Figure 5 Effect of Pivoting a Chart
Note
Pivoting a chart is only possible in the Old Layout Band, the New Layout Band does not allow pivoting an entire chart.
-
Pivot a single group:
For Old Layout Band- To pivot a single row group, right-click it and select Switch To Column Group. You can also move any field or dimension by dragging. You cannot drag a measure to a different group.
- To pivot a single column group, right-click it and select Switch To Row Group. You can also move any field or dimension by dragging. You cannot drag a measure to a different group.
For New Layout Band
- To pivot a single group, click
icon and select Move to <drop_area_name>. You can also move any field or dimension by dragging. You cannot drag a measure to a different group.
Note
In the Move to <drop_area_name> option, the drop_area_name depends on the visualization type you select.









