dbTalk Databases Forums  

looking for AS 2005 drillthrough examples

microsoft.public.sqlserver.olap microsoft.public.sqlserver.olap


Discuss looking for AS 2005 drillthrough examples in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
ChrisHarrington
 
Posts: n/a

Default looking for AS 2005 drillthrough examples - 01-20-2006 , 05:02 PM






Looking for examples which work against Adventure Works. Suprised that
Googling has not found anything.



Reply With Quote
  #2  
Old   
Voorshwa
 
Posts: n/a

Default Re: looking for AS 2005 drillthrough examples - 01-20-2006 , 05:10 PM






This example is a good starting point, but isn't exhaustive.

http://spaces.msn.com/members/denster/Blog/cns!1pvF91EMBBNxnTGlLGUgGehg!296.entry

V


Reply With Quote
  #3  
Old   
Rose
 
Posts: n/a

Default Re: looking for AS 2005 drillthrough examples - 01-20-2006 , 05:35 PM



Can drillthrough work on more than 1 measure groups?

Once I tried that, this message is returned
Errors from the SQL query module: Drillthrough columns must belong to
exactly one measure group. The columns requested by the drillthrough
statement are referencing multiple measure groups.

Any workaround for that? Can more than 1 drillthroughs be 'union-ed'
in some ways to achieve the effect?


Reply With Quote
  #4  
Old   
ChrisHarrington
 
Posts: n/a

Default Re: looking for AS 2005 drillthrough examples - 01-20-2006 , 08:16 PM



Hi Voorshwa,

I had found that example. But it doesn't work for me. I get this error:

Query (8, 2) Errors from the SQL query module: The 'Full Name' column cannot
be found in the '$Customer' table.

"Voorshwa" <voorshwa (AT) gmail (DOT) com> wrote

Quote:
This example is a good starting point, but isn't exhaustive.

http://spaces.msn.com/members/denster/Blog/cns!1pvF91EMBBNxnTGlLGUgGehg!296.entry

V




Reply With Quote
  #5  
Old   
Rose
 
Posts: n/a

Default Re: looking for AS 2005 drillthrough examples - 01-20-2006 , 08:57 PM



Try this, just a change on the Customer Name and Country Region lines
(as the Adventure Works cube was used as an AS Tutorial tool and the
names got changed at some point in the tutorial lessons)

drillthrough maxrows 100
select
{[Measures].[Internet Order Quantity]} on 0,
{[Product].[Product Categories].[Clothing]} on 1
from [Adventure Works]
return
[$Product].[Model Name] as [Model Name],
[$Customer].[Customer] as [Customer Name],
[$Customer].[Country] as [Country Region],
[$Measures].[Internet Order Quantity] as [Orders],
[$Measures].[Internet Sales Amount] as [Sales],
[$Measures].[Internet Total Product Cost] as [Cost]


Reply With Quote
  #6  
Old   
ChrisHarrington
 
Posts: n/a

Default Re: looking for AS 2005 drillthrough examples - 01-20-2006 , 10:41 PM



That did the job - thanks!

"Rose" <rose.say (AT) gmail (DOT) com> wrote

Quote:
Try this, just a change on the Customer Name and Country Region lines
(as the Adventure Works cube was used as an AS Tutorial tool and the
names got changed at some point in the tutorial lessons)

drillthrough maxrows 100
select
{[Measures].[Internet Order Quantity]} on 0,
{[Product].[Product Categories].[Clothing]} on 1
from [Adventure Works]
return
[$Product].[Model Name] as [Model Name],
[$Customer].[Customer] as [Customer Name],
[$Customer].[Country] as [Country Region],
[$Measures].[Internet Order Quantity] as [Orders],
[$Measures].[Internet Sales Amount] as [Sales],
[$Measures].[Internet Total Product Cost] as [Cost]




Reply With Quote
  #7  
Old   
Akshai Mirchandani [MS]
 
Posts: n/a

Default Re: looking for AS 2005 drillthrough examples - 01-23-2006 , 02:07 PM



Drillthrough can only return columns from 1 measure group. However, the cool
thing about it (in my opinion ) is that you can drillthrough on measure A
from measuregroup MG1 and return columns from MG2 -- but all the columns
must be from MG2.

This way, you can create a "virtual" measure group with a pure ROLAP
partition and return whatever information you need as part of modeling this
new "virtual" measure group. Of course, you have to be a little careful with
this so that you don't affect calculations (correctness and performance),
but it gives you some great flexibility.

Thanks,
Akshai
--
This posting is provided "AS IS" with no warranties, and confers no rights
Please do not send email directly to this alias. This alias is for newsgroup
purposes only.

"Rose" <rose.say (AT) gmail (DOT) com> wrote

Quote:
Can drillthrough work on more than 1 measure groups?

Once I tried that, this message is returned
Errors from the SQL query module: Drillthrough columns must belong to
exactly one measure group. The columns requested by the drillthrough
statement are referencing multiple measure groups.

Any workaround for that? Can more than 1 drillthroughs be 'union-ed'
in some ways to achieve the effect?




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.