dbTalk Databases Forums  

All Level question

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


Discuss All Level question in the microsoft.public.sqlserver.olap forum.



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

Default All Level question - 06-20-2005 , 10:18 AM






I have a plain vanilla MDX statement that has the all level of one of the
dimensions on rows. The name [All Lawfirms] displays when I run the query in
the sample mdx application. However, when I run the query through reporting
services with the flattening algoryth, the name of the all level displays as
blank in the result set. Any ideas how I can force the query to show the
name of the all level?

Reply With Quote
  #2  
Old   
Deepak Puri
 
Posts: n/a

Default Re: All Level question - 06-20-2005 , 06:30 PM






This is well-known behavior in Reporting Services - one work-around is
to create a Calculated Member:

http://msdn.microsoft.com/library/de.../en-us/dnsql2k
/html/olapasandrs.asp
Quote:
Integrating Analysis Services with Reporting Services

Sean Boon
Microsoft Corporation

June 2004
...
Another behavior of the flattening algorithm is that the "[(ALL)]" level
is not included in the dataset. This has a couple of implications. The
first is that if you want to include data from the "All" member of a
dimension, you'll need to create a calculated member to represent this
member. This can be accomplished in a couple of different ways. The
first method would be to create a calculated member on the Measures
dimension and for the definition of the calculated member refer to the
current member's name or unique name. There are several examples of this
method represented in later sections of this whitepaper.

Note The "All" level of a dimension is not included in the field set
that is returned to Reporting Services.
The second implication of the "All" level not being represented in the
dataset is that calculated members, usually defined without a parent
member, will need to change so that they do have a parent member. This
only applies in cases where the calculated member does not belong to the
Measures dimension. In many cases, when calculated members are defined
on a non-Measures dimension, the parent member property is left blank.
This can be changed in the calculated member dialog box as shown below
...
Quote:

- Deepak

Deepak Puri
Microsoft MVP - SQL Server

*** Sent via Developersdex http://www.developersdex.com ***


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.