dbTalk Databases Forums  

Not returning (All) row

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


Discuss Not returning (All) row in the microsoft.public.sqlserver.olap forum.



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

Default Not returning (All) row - 07-14-2004 , 06:14 PM






How do i write the mdx query so I don't get the 'All' row?

select {[RunningTotalSubs]} on Columns, {[Gender].members} on Rows from
[Consumer]

I get
Gender | Total
Quote:
10
M | 5
F | 5


And when it's returned it's not labeled as All.

I just want M and F, no totals.




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

Default Re: Not returning (All) row - 07-14-2004 , 06:48 PM






In analysis manager you can disable the all level,

Click on your Dimension in AS, click on the advanced properties page Select
All Level as No.
"Cindy Lee" <cindylee (AT) hotmail (DOT) com> wrote

Quote:
How do i write the mdx query so I don't get the 'All' row?

select {[RunningTotalSubs]} on Columns, {[Gender].members} on Rows from
[Consumer]

I get
Gender | Total
| 10
M | 5
F | 5


And when it's returned it's not labeled as All.

I just want M and F, no totals.





Reply With Quote
  #3  
Old   
Andrej Hudoklin
 
Posts: n/a

Default Re: Not returning (All) row - 07-15-2004 , 03:26 AM



Well that is one solution, but then if you do want to see in some other
report the sum of M and F then All level is the one to use.

Therefore the best way would be to change MDX:
select {[RunningTotalSubs]} on Columns, {[Gender].[All Gender].children} on
Rows from
[Consumer]


HTH,
Andrej


"AshVsAOD" <.> wrote

Quote:
In analysis manager you can disable the all level,

Click on your Dimension in AS, click on the advanced properties page
Select
All Level as No.
"Cindy Lee" <cindylee (AT) hotmail (DOT) com> wrote in message
news:%23enSRhfaEHA.2892 (AT) TK2MSFTNGP10 (DOT) phx.gbl...
How do i write the mdx query so I don't get the 'All' row?

select {[RunningTotalSubs]} on Columns, {[Gender].members} on Rows
from
[Consumer]

I get
Gender | Total
| 10
M | 5
F | 5


And when it's returned it's not labeled as All.

I just want M and F, no totals.







Reply With Quote
  #4  
Old   
AshVsAOD
 
Posts: n/a

Default Re: Not returning (All) row - 07-15-2004 , 05:30 PM



Good point.
"Andrej Hudoklin" <andrej.hudoklin (AT) add (DOT) si> wrote

Quote:
Well that is one solution, but then if you do want to see in some other
report the sum of M and F then All level is the one to use.

Therefore the best way would be to change MDX:
select {[RunningTotalSubs]} on Columns, {[Gender].[All Gender].children}
on
Rows from
[Consumer]


HTH,
Andrej


"AshVsAOD" <.> wrote in message
news:enG630faEHA.3804 (AT) TK2MSFTNGP10 (DOT) phx.gbl...
In analysis manager you can disable the all level,

Click on your Dimension in AS, click on the advanced properties page
Select
All Level as No.
"Cindy Lee" <cindylee (AT) hotmail (DOT) com> wrote in message
news:%23enSRhfaEHA.2892 (AT) TK2MSFTNGP10 (DOT) phx.gbl...
How do i write the mdx query so I don't get the 'All' row?

select {[RunningTotalSubs]} on Columns, {[Gender].members} on Rows
from
[Consumer]

I get
Gender | Total
| 10
M | 5
F | 5


And when it's returned it's not labeled as All.

I just want M and F, no totals.









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.