dbTalk Databases Forums  

Member list ...

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


Discuss Member list ... in the microsoft.public.sqlserver.olap forum.



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

Default Member list ... - 08-02-2004 , 05:03 AM






Hi,

i have some problems with an element list from a dimension in Visual Studio .NET.
We work with OLAP (Microsoft Analysis Server an Microsoft Reporting Services SP1). We would like generate an list of members from an dimension for an simple filter in our report.
When i run the following MDX in der Microsoft MDX Sample Application we receive the result that we want. But when i run this MDX in the Visual Studion .NET Report Designer we receive all Members of the Dimension but for the
Member "All Products" we receive an empty field.

MDX Command:

WITH MEMBER Measures.NullColumn AS 'Null'
SELECT
{ Measures.NullColumn } ON COLUMNS,
{ [Products].AllMembers } on rows
FROM "Sales Cube"


Result in MDX Sample Application: (Thats correct)

"ALL Products"
"Product A"
"Product B"
"Product C"
"Product D"
a.s.o.

Result in Visual Studio .NET 2003:

" "
"Product A"
"Product B"
"Product C"
"Product D"
a.s.o.

Maybee anyone have a solution.

Thanks in advance...
Stephan


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

Default Re: Member list ... - 08-03-2004 , 08:58 AM






I would just do the following:

WITH MEMBER Measures.NameColumn AS '[Product].currentmember.name'
SELECT
{ Measures.NameColumn } ON COLUMNS,
{ [Product].AllMembers } on rows
FROM Sales

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.