dbTalk Databases Forums  

MDX query in reporting Services does not display the member All

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


Discuss MDX query in reporting Services does not display the member All in the microsoft.public.sqlserver.olap forum.



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

Default MDX query in reporting Services does not display the member All - 09-25-2006 , 04:26 AM






I have the following MDX in reporting services for a dataset:

SELECT non empty {[Plant].Members} on rows , non empty{[Measures].qty }
on columns from Sales

This query in the MDX Sample applications displays as follows:

All Plant 111245.09
ABC 120.50
DEF 1189.90
GHI 9900.00

But in reporting Services the above shows as follows:
111245.09
ABC 120.50
DEF 1189.90
GHI 9900.00

This causes problem to me I have a parameter defined on plant called
pplant which I have set default to All Plant but in the above query
there is no All Plant it does not work.

I would be very thankful if somebody can show me how I can get All
Plant to appear in reporting services.

Thanks
Karen


Reply With Quote
  #2  
Old   
Kaisa M. Lindahl Lervik
 
Posts: n/a

Default Re: MDX query in reporting Services does not display the member All - 09-25-2006 , 06:52 AM






I guess the All Plant is what you see in the MDX Sample Application?
You might want to try something like this:

With member [Measures].[MyCaption] as
'[Plant].CurrentMember.Properties("Caption")'
SELECT non empty {[Plant].Members} on rows , non empty{[Measures].qty,
[Measures].[MyCaption] }
on columns from Sales

This will get you a column with all the captions, including your All Plant.

Kaisa M. Lindahl Lervik

"KarenM" <karenmiddleol (AT) yahoo (DOT) com> wrote

Quote:
I have the following MDX in reporting services for a dataset:

SELECT non empty {[Plant].Members} on rows , non empty{[Measures].qty }
on columns from Sales

This query in the MDX Sample applications displays as follows:

All Plant 111245.09
ABC 120.50
DEF 1189.90
GHI 9900.00

But in reporting Services the above shows as follows:
111245.09
ABC 120.50
DEF 1189.90
GHI 9900.00

This causes problem to me I have a parameter defined on plant called
pplant which I have set default to All Plant but in the above query
there is no All Plant it does not work.

I would be very thankful if somebody can show me how I can get All
Plant to appear in reporting services.

Thanks
Karen




Reply With Quote
  #3  
Old   
KarenM
 
Posts: n/a

Default Re: MDX query in reporting Services does not display the member All - 09-25-2006 , 07:20 AM



Many thanks Kaisa

Kaisa M. Lindahl Lervik wrote:
Quote:
I guess the All Plant is what you see in the MDX Sample Application?
You might want to try something like this:

With member [Measures].[MyCaption] as
'[Plant].CurrentMember.Properties("Caption")'
SELECT non empty {[Plant].Members} on rows , non empty{[Measures].qty,
[Measures].[MyCaption] }
on columns from Sales

This will get you a column with all the captions, including your All Plant.

Kaisa M. Lindahl Lervik

"KarenM" <karenmiddleol (AT) yahoo (DOT) com> wrote in message
news:1159176362.666071.322190 (AT) b28g2000cwb (DOT) googlegroups.com...
I have the following MDX in reporting services for a dataset:

SELECT non empty {[Plant].Members} on rows , non empty{[Measures].qty }
on columns from Sales

This query in the MDX Sample applications displays as follows:

All Plant 111245.09
ABC 120.50
DEF 1189.90
GHI 9900.00

But in reporting Services the above shows as follows:
111245.09
ABC 120.50
DEF 1189.90
GHI 9900.00

This causes problem to me I have a parameter defined on plant called
pplant which I have set default to All Plant but in the above query
there is no All Plant it does not work.

I would be very thankful if somebody can show me how I can get All
Plant to appear in reporting services.

Thanks
Karen



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.