Drillthrough in the FoodMart Sales Cube within Analysis Services
Before we can leverage
the Drillthrough capabilities of an Analysis Services cube, we
must enable the feature from within the Cube Editor. When we
enable Drillthrough, we also select the tables and columns that are
included in the result set returned by a drillthrough operation. As many
of us know, these columns can be from any table in the cube's underlying data
source, (and can include columns that are not part of the cube's schema, if set
up properly). We can also limit resources consumed by Drillthrough
operations (a potentially significant concern with larger, more complex cubes),
limiting the number of rows returned for the columns we have selected, when
Let's enable Drillthrough
for the Sales sample cube, taking the following steps.
Manager, beginning at the Start menu.
Expand the Analysis
Servers folder by clicking the "+" sign to its immediate
in much the same manner as shown in Illustration 14.
14: Example Databases Displayed within Analysis Manager
NOTE: Your databases / cube tree will differ, depending upon
the activities you have performed since the installation of Analysis
Services (and the simultaneous creation of the original set of sample
cubes). Should you want or need to restore the cubes to their original state,
simply restore the database under consideration. For instructions, see the MSSQL
Server 2000 Books Online.
Expand the FoodMart
Expand the Cubes
The cubes appear as depicted in Illustration
Illustration 15: Example
Cubes within the FoodMart 2000 Analysis Services Database
the Sales cube within the FoodMart 2000 Analysis Services
from the context menu that appears, the relevant portion of which is shown in Illustration
16: Opening the Cube Editor
The Cube Editor opens.
--> Drillthrough Options... from the main menu inside the Cube
Editor, as depicted in Illustration 17.
Illustration 17: Select
Tools --> Drillthrough Options ...
The Cube Drillthrough
Options dialog appears.
check box labeled Enable drillthrough (atop the dialog) to check it, if
selection checklist, on the Columns tab, ensure that only the checkboxes
presented in Table 1 below are checked:
Select Settings for the Detail Drillthrough View ...
The Cube Drillthrough
Options dialog appears as partially shown in Illustration 18.
18: The Cube Drillthrough Options Dialog (Partial View) with Settings
Our intent here is to
establish a simple display of dated "transactions" to give us a
feel that transactions within reasonable date ranges are, indeed, underneath
the totals we see in the value upon which we can drill through, Store Sales.
The columns selected here could obviously be varied to accomplish other
specific needs, just as easily, and would apply to any measure in the cube.
to accept settings.
Settings message box appears, alerting us to the fact that our settings
take effect only after the cube is saved, as depicted in Illustration 19.
19: Drillthrough Settings Message Box
to dismiss the message box, and to close the Cube Drillthrough Options dialog.
In the upper
left corner of the Cube Editor (top of the cube tree), right-click the Sales
Cube ... from the context menu that appears, as shown in Illustration 20.
20: Select Process Cube ...
on the Save the cube dialog that
appears, to save the
cube, as depicted in Illustration
21: Save the Cube Before Processing ...
a Cube dialog appears next. We will select Full processing, simply
to ensure that we are all in sync going forward.
radio button to the left of the Full Process label, as shown in Illustration 22.
22: Select Full Process ...
to begin Full processing of the Sales cube.
begins immediately, and the Process viewer appears, displaying the
various logged events of the processing cycle. Processing completes, and the
viewer presents the green Processing completed successfully message, as
depicted in Illustration 23.
23: Processing Completes Successfully, as Indicated on the Process Viewer
to dismiss the viewer.
--> Exit to close the Cube Editor.
--> Exit to exit Analysis Manager.
we have enabled drillthrough for the Sales cube, we are ready to
examine running a query against it that leverages the capability. In our case,
that query will support the Dataset for our drillthrough target
report. We will get some hands-on practice with construction of this report,
as soon as we complete preparation of the primary report (from which we will
launch drillthrough activity) in the next section.