dbTalk Databases Forums  

help me please

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


Discuss help me please in the microsoft.public.sqlserver.olap forum.



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

Default help me please - 09-15-2003 , 05:15 AM






Can anyone tell me that in the following query what is the purpose of
Store.[].


WITH MEMBER STORE.[] AS 'NULL' MEMBER GENDER.TOTAL AS
'SUM(HEAD(AXIS(1),AXIS(1).COUNT-1))',SOLVE_ORDER=1 SELECT
{[MEASURES].[UNIT SALES]} ON COLUMNS,
{CROSSJOIN({GENDER.M,GENDER.F},{USA.CHILDREN}),{(G ENDER.TOTAL,STORE.[])}}
ON ROWS FROM SALES



This query gives the total of the columns at the bottom.

Regards,

Harris

Reply With Quote
  #2  
Old   
Lurtz Morrien
 
Posts: n/a

Default help me please - 09-15-2003 , 08:47 AM







Store.[] is needed to provide something to crossjoin
with. The gender total is crossjoined with a 'dummy' null
just as M,F with USA.children.

I guess it needs to be balanced.

HTH Lutz
Quote:
-----Original Message-----
Can anyone tell me that in the following query what is


WITH MEMBER STORE.[] AS 'NULL' MEMBER GENDER.TOTAL AS
'SUM(HEAD(AXIS(1),AXIS(1).COUNT-1))',SOLVE_ORDER=1 SELECT
{[MEASURES].[UNIT SALES]} ON COLUMNS,
{CROSSJOIN({GENDER.M,GENDER.F},{USA.CHILDREN}),
{(GENDER.TOTAL,STORE.[])}}
ON ROWS FROM SALES



This query gives the total of the columns at the bottom.

Regards,

Harris
.


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.