dbTalk Databases Forums  

Can I hide specific dimension members?

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


Discuss Can I hide specific dimension members? in the microsoft.public.sqlserver.olap forum.



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

Default Can I hide specific dimension members? - 11-18-2004 , 07:19 PM






I wish to hide individual dimension members.
I have a fact table that lists brand names and the amount sold in a month.

I use Analysis Services to produce reports of the dollars sold by brand over
months.

The data is collected by a research panel and so sometimes the brand
information is not filled in. The result is that there are serveral brands
that are captured as "OTHER", "NOT SPECIFIED", "NOT REPORTED" and a couple
others. I wish to filter out these brands on my report, but I still want to
have their dollar figures aggregated in my total.

The ideal is to have some logic that says,
"If the brand is "OTHER", "NOT SPECIFIED", "NOT REPORTED" don't show it but
still use its value in my aggregations"

If I simply filter out the data in my transactional database I will not get
the contribution of these brands in my totals.

What is the general mechanism that Analysis Services provides to achieve
this result?

Thank You, Jesse D.


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

Default Re: Can I hide specific dimension members? - 11-19-2004 , 10:01 PM






If the specific members to be excluded don't change, then a Named Set
can be used to exclude them as a group. Here's a sample MDX query for
Foodmart Sales cube, with such a set:

Quote:
With Set [ExcludedLevels] as
'{[Education Level].[All Education Level].[Partial College],
[Education Level].[All Education Level].[Partial High School]}'

Select {[Measures].[Unit Sales], [Measures].[Profit]} on columns,
Hierarchize({[Education Level].[All Education Level],
Except([Education Level].[Education Level].Members,
[ExcludedLevels])}) on rows
from Sales
Quote:

- Deepak

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!


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.