solving sql server problems for millions of dbas and developers since 2006



SQL Server DBA Tips SQL Server Developer Tips SQL Server Business Intelligence Tips SQL Server Career Tips SQL Server Tip Categories SQL Server Tutorials SQL Server Webcasts SQL Server Whitepapers SQL Server Tools SQL Server Questions and Answers MSSQLTips Authors About MSSQLTips SQL Server User Groups MSSLQTips Giveaways MSSQLTips Advertising Options

MSSQLTips Facebook Page MSSQLTips LinkedIn Page MSSQLTips RSS Feed MSSQLTips Twitter Page MSSQLTips Google+ Page





Enabling Drillthrough in Analysis Services

By: | Read Comments | Print

Siddharth is an Associate Manager with Accenture in the Avanade Division focusing on Business Intelligence.

Related Tips: More

Problem

Data analysis from a cube starts with aggregated and summarized data, followed by drill-down and drill-through of the data for a deeper and intelligent analysis. Drill down is inherently supported when you browse the data of the cube, but drill through has to be defined as per the requirements of analysis. In this tip we will see how to enable drill through on a cube.

Solution

In SSAS, actions are one of the best ways to customize browsing and drilling of data for the end-user.

There are three types of actions in SSAS:

  • Report
  • Drillthrough
  • Standard

The action of interest that we cover in this tip is Drillthrough.

For this example, we will be using the sample Adventureworks SSAS project that ships with SQL Server 2008.

Step 1
Open the Adventureworks cube.

Step 2
Open the Actions tab and from the toolbar select "New Drillthrough Action" as shown below.

SSAS actions tab

Step 3
When you create a new action, you will get a screen like below to define the action.

Let's say we want to see products related to the Reseller Sales amount. 

  • Name: I named the action "Show Related Products".
  • Measure group members: we need to select the target field that should offer the drillthrough action and in our case we selected Reseller Sales amount.
  • Condition: to keep it simple for now, we will not use the condition property.
  • Return Columns: select the columns to show when the user selects this action.
ssas drill through action

Step 4
Deploy this change and browse the cube in the browser tab.

I selected the Reseller Sales Amount measure and sliced it by the Geography hierarchy from the Geography dimension as shown below.

Right click on any value in the Reseller Sales Amount and you should find "Show Related Products" in the menu as shown below.

ssas cube browsing

Step 5 
Clikc on the Show Related Products menu option and you will get a pop-up window with the fields we defined in the action showing all the records that make up the value on which we selected the drillthrough action.

ssas cube drill through detail data

Next Steps

  • Check out other actions available in SSAS.
  • Configure additional properties available in the Drillthrough action to fine tune results of your action.
  • Review these other SSAS tips


Related Tips: More | Become a paid author


Last Update: 10/3/2011

Share: Share 






Comments and Feedback:


Post a Comment or Question

Keep it clean and stay on the subject or we may delete your comment.
Your email address is not published. Required fields are marked with an asterisk (*)

*Name   *Email   Notify for updates
Comments
*Enter Code refresh code


 

Sponsor Information
"SQL diagnostic manager delivers response in minutes, not hours!"

Time-strapped database professionals use SQL Monitor to look after their servers. Try it online.

SQL Servers keeping you up at night? Contact the Edgewood SQL Server consultants for a Health Check.

Get SQL Server Tips Straight from Kevin Kline.

Join the over million SQL Server Professionals who get their issues resolved daily.

Valuable SQL Server web casts on Performance Tuning, Development, Administration, SSIS and more...


Copyright (c) 2006-2012 Edgewood Solutions, LLC All rights reserved
privacy | disclaimer | copyright | advertise | about
authors | contribute | feedback | giveaways | user groups
Some names and products listed are the registered trademarks of their respective owners.


Edgewood Solutions LLC | MSSharePointTips.com | MSSQLTips.com