dbTalk Databases Forums  

Suppressing the All Member in this Query

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


Discuss Suppressing the All Member in this Query in the microsoft.public.sqlserver.olap forum.



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

Default Suppressing the All Member in this Query - 03-15-2006 , 01:50 PM






Here is a query that I want to return only the top 6, not the top 6
plus All. How do we suppress the All value in the result set?

SELECT NON EMPTY
HIERARCHIZE(AddCalculatedMembers({DrillDownLevelTo p({[Products].[P-Product
Name]}, 6, , [Measures].[Secured Forecast, lbs])})) DIMENSION
PROPERTIES PARENT_UNIQUE_NAME ON COLUMNS FROM [OurCube] WHERE
([Measures].[Secured Forecast, lbs], [Products].[P-Product
Line].&[Product Line X])

Example answer set (pardon the poor spacing):

All ProdX1 ProdX2 ProdX3 ProdX4 ProdX5 ProdX6
1,519,181 222,01 180,571 495,605 484,573 59,597 57,118

Thank you.


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

Default Re: Suppressing the All Member in this Query - 03-15-2006 , 06:28 PM






I determined the solution. The TopCount function is the better way to
go.


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.