The Dimensional Viewer allows you to build a custom, multi-dimensional view of data. Drag columns from the Field List to the work area to create a view. You can apply aggregate fields and use rollup columns to view aggregated data, such as sum and max values. Use grouping and filtering to further modify the view. You can export a view to Excel or Local Storage or save your work as a Dimensional View document (.tdm). You can also publish view data to Intelligence Central as a dataset.
You can create a dimensional view from a table, a view, a data grid, a query, or a cross-connection query. You can also create a view from a Toad Intelligence Central object.
The advantage of the Dimensional Viewer is that it allows you to easily create and modify aggregates and groups without modifying the underlying query. In addition, you can easily display multiple views of the same data all within one window.
Note: This feature is available in the Toad Data Point Professional Edition only.
Note: Publishing to Intelligence Central requires access to a Toad Intelligence Central server.
This topic covers the following:
To create a Dimensional View
- Use one of the following methods to select data and open the Dimensional View window:
- In the Object Explorer, right-click a table or view and select Dimensional View.
- Right-click a data grid and select Send To | Dimensional View.
- Select Tools | Dimensional View and select a source for data. Select Query to enter a query. See The Pick a Source Dialog for more information.
- In the Dimensional View window, drag a column from the Field List to the work area in the right pane to create a view. To add additional columns, drag them to the existing view.
- For date columns, expand the node to display individual date components (year, quarter, month, etc.) which you can use like columns. Drag these to a view or filter.
To change a column's aggregate type, right-click the column in the Field List and select Aggregate Type. To change the aggregate type for a column in a view, right-click the column in the view. See Using Aggregate Types.
Note: The default aggregate type for a numeric column is Sum.
- To change a column's display format (date and numeric columns), right-click the column in the Field List and select Display Format. To change the format for individual columns in a view, right-click the column in the view and select Display Format.
- To create a second view, drag a column to the work area outside the existing view.
- To group rows in a view, click in the view toolbar to display the Group By box. Then drag a column header from the grid to the Group By box to group by that column.
- Calculated field. To add a calculated field to the Field list, right-click a column in the Field List and select Add Calculated Field.
- If the selected column is numeric, click Custom in the Quick Calculation dialog to open the advanced editor.
- Build an expression in the editor and enter a name.
- To save your expression to reuse in other calculated fields, click Add As Saved Expression. The expression is added to the Saved Expressions list.
- Click Apply. The calculated field is added to the Field List.
- To add the calculated field to a view, drag the calculated field from the Field List to the view.
- To change the aggregate type, right-click within the calculated field in a view and select Aggregate Type.
- To edit the calculated field in the Field List, right-click the field in the Field List and select Edit Calculated Field.
- (Numeric columns only) To add a Quick Calculation, right-click the column you want to calculate in the Field List and select Add Calculated Field.
- In the Quick Calculation dialog, select a calculation type and a second column, or modify the expression in the expression field.
- Click OK to add the calculated field to the Field List.
- Calculated column. To create a calculated column in a view, click in the view's toolbar and build the calculated field from one or more existing columns in the view. To edit an existing calculated column in a view, click again.
- Rollup. To use a Rollup column to group data into categories or ranges, right-click a column in the Field List or view and select Create Rollup.
- If the column is a numeric or date column, create a rule for the first range of data and enter a label. Then click + to add another range. Or click Create N equal rollup to instruct Toad to automatically create a specified number of ranges of equal size.
- If the column is not a numeric or date column, select the items to include in the first category. Then click Add Rollup. Repeat to add additional categories.
- Click OK to add the rollup column to the Field List or view.
To add a Percent of Total column based on an existing column in a view, right-click the column and select Percent of Total. The column is added to the view and displays the percentage of the sum for each value in the original column.
Additionally, you can right-click the column and select Percent of Total Graph to add the corresponding graph.
- To add a column total, minimum, maximum, etc. to the Summary panel at the bottom of a view or group, right-click the Summary panel below the column and select an option. See Add Column Totals and Subtotals for more information.
- To create a column alias, right-click a column in the Field List or a view and select Column Alias.
- Select File | Save File to save your work as a Toad Dimensional View document.
Use the Wizard bar to export data, to publish the file or data, to arrange the views within the work space, or to add the file to the Project Manager.
||Organize views within the work area.|
||Export all views to Excel.|
||Export all views to Local Storage. See Save Data to Local Storage.|
||Save your work as a Dimensional View document (.tdm) and add it to the currently-open project in the Project Manager. See Project Manager.|
||Publish the Dimensional View document to Intelligence Central.|
||Publish data to Intelligence Central.|
To refresh the view
- After opening a saved Toad Dimensional View document, press F5 to refresh the dimensional view and reflect the current data in the source database.
To show data details for an aggregate value
- When a value in a view is based on aggregated data, you can drill down to view the data details. Right-click the value in the view and select Show Details. This action opens a Detail Grid displaying the rows on which the aggregate value is based.
To edit the query
- To edit the query, click Edit Query. Then modify the query in the editor pane. Click to preview the data.
- Click OK to save your changes, execute the query, and close the editor window. Your changes are automatically applied to the dimensional view/views.
- To enter a value for a bind parameter or variable in the query, press F5. Toad prompts you for a value.
To export a single view (container)
- Right-click the view (within its data grid) and select one of the following options to export a single view:
To export all views (containers)
Select one of the following from the Wizard bar:
- Export All—Export to Excel. Export multiple or all views to individual worksheets.
- In the Export dialog, each tab represents a view. Specify a worksheet name and export options for each view. See Specify Excel Export Options for more information.
- A view's header is used as the default worksheet name. The field name/names are used when the header field is empty.
- Local Storage—Save as multiple tables in Local Storage. In the Save to Local Storage dialog, each tab represents a view. See Save Data to Local Storage for more information.
- Publish Data—Publish to Toad Intelligence Central. In the Publishing dialog, click Publish Detail to select which views to publish and to specify the object names. See Publish to Toad Intelligence Central for more information about the Publishing dialog.
Tip: Specify a name for each view (container) in its header field prior to exporting. The name is used in the exported object.
Toad allows you to create two types of filters: global and local. A global filter is applied to all views in the Dimensional View window. A local filter is applied to only one view.
A global filter is created in the Filters pane. A local filter is created in a view.
To create a global filter
- Drag a column from the Field List to the filter icon in the right pane.
- When the Filters pane displays, select the values to include in the filter. The filter is automatically applied to all views in the right pane.
- To exclude the selected values, select Exclude selected from the drop-down list.
- To search for a value in a column, enter the value in the Search box.
- To add an additional column to the filter, drag the column from the Field List to the Filters pane.
To remove a column from the filter, select the column's tab and then click the column's close button (to the right of the Include selected field).
Caution: If you close the Filters pane, the filter is deleted.
After building a filter, you can view the text of the filter in a box at the bottom of the Dimensional Viewer window.
Caution: If you click the close button for the filter text box, the filter is deleted.
To create a local filter
- In a view, right-click the column to use in the filter and select Column Filter.
- In the Filter Editor, build the filter condition by selecting a column, an operator, and a value. Click to add another condition to the filter.
- Click Apply to preview the data. Click OK to add the filter to the view.
- After adding the filter to the view, the filter text displays in a box at the bottom of the view.
- To modify the filter, right-click a column in the view and select Column Filter.
- To delete the filter, click the close button for the filter text box in the view.
To quickly filter a view (local filter)
- The quickest way to create a local filter is to use the Auto Filter Row.
- Right-click any column header in a view and select Show Auto Filter Row. The Auto Filter Row opens in the top row.
- Enter a search string to use for filtering in a column or columns in this row. The filter is applied as you enter values and the filter text displays in the footer of the view.
- Click Edit Filter in the footer to further modify the filter.
Tip: Use the Auto Filter Row to quickly create the framework for your filter. Then refine it in the Filter Editor.
Working with Date Columns
For each date column, Toad automatically provides individual date components (year, quarter, month, day, hour, minute, second). Expand the date column node to display the components. Drag date components to a new or existing view or to a filter, to use like a column.
To use a date component in a view
- In the Field List, expand the node for the selected date column to display the date components.
- Drag a date component to a new or existing view. Toad automatically adds all date components higher in the hierarchy to the view. For example, if you drag the month component to a view, Toad automatically adds the quarter and year components to the same view.
To use a date component in a filter
- In the Field List, expand the node for the selected date column to display the date components.
Drag a date component to the filter icon to create a new filter or to the Filters pane to add it to an existing filter.
You cannot add two or more date components from the same date column to a filter. You can only add multiple date components to a filter if each component is from a different date column.
Using Aggregate Types
Apply an aggregate type to a column to display aggregate values in that column. You can apply an aggregate type to a column in the Field List or change the aggregate type for a column in a view. The default aggregate type for a numeric column is Sum.
For example, suppose you want to create a view from a table that provides the sales date and sales amount of each sale. Drag the Quarter component from the sales date column to a view. Then drag the sales amount column to the view and apply the Sum aggregate type. The total sales amount per quarter displays in the view.
To apply an aggregate type
In the Field List, right-click a column and select Aggregate Type | option. Review the following for additional information:
In a VARCHAR column, the value that appears first when values are listed alphabetically is displayed.
||Number of values.|
||Number of distinct values.|
In a VARCHAR column, the value that appears last when values are listed alphabetically is displayed.
||Sum of all values.|
- Drag the column to a new or existing view.
- To change the aggregate type for a column already in a view, right-click the column in the view and select Aggregate Type.
- To use the column a second time with a different aggregate type, change the aggregate type on the column in the Field List and then drag it to a view (or change the type after dragging it to a view). For example, you might want to display both the Max value and the Sum for a sales amount column.
Automate Dimensional View
You can automate the task of opening an existing Dimensional View file, executing the query, and exporting the data to Excel, Local Storage, or Intelligence Central. See the Dimensional Viewer activity description in Use Database Automation Activities for more information.
- The Dimensional Viewer uses the default display formats specified in Tools | Options | Environment | Grid for data types.
- The name you enter in the view Header is used as the worksheet name when you export to Excel.
- To see a histogram of data, right-click data in a view and select Histogram Tool. See Create Histograms.
Create Queries for SQL Server Analysis Services