dbTalk Databases Forums  

How to suppress All dimensions reporting from the following MDX query

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


Discuss How to suppress All dimensions reporting from the following MDX query in the microsoft.public.sqlserver.olap forum.



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

Default How to suppress All dimensions reporting from the following MDX query - 06-04-2004 , 09:55 AM






I have quite a few queries similar to the following:

SELECT
{[Gender].Members} ON Rows,
{[Customers].Members} on Columns
FROM [Sales]
where [Measures].[Unit sales]

when I run this query I get one additional All Gender row and one
additional column for the All Customer. I do not want this All
dimensions to be reported please suggest how I can modify this query
to eliminate this All dimensions.

Thanks
Simon

Reply With Quote
  #2  
Old   
Brian Altmann
 
Posts: n/a

Default RE: How to suppress All dimensions reporting from the following MDX query - 06-04-2004 , 12:51 PM






Another approach

SELEC
{[Gender].[Gender].Members} ON Rows
{ Descendants([Customers].[All Customers] , 1, self_and_after ) } on Column
FROM [Sales
where [Measures].[Unit sales

By incremeting 1 to 2 you can also eliminate Countries from the query and so on
If you only wanted the customer themselves (the [Name] level) then you can use

SELEC
{[Gender].[Gender].Members} ON Rows
{ [Customers].[Name].members } on Column
FROM [Sales
where [Measures].[Unit sales

HTH
Bria
www.geocities.com/brianaltmann/olap.htm




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.