dbTalk Databases Forums  

MDX: How to set Static set name, not name of dimension

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


Discuss MDX: How to set Static set name, not name of dimension in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Kaisa M. Lindahl
 
Posts: n/a

Default MDX: How to set Static set name, not name of dimension - 12-05-2005 , 04:22 PM






I'm trying to create a dynamic query for a Reporting Services report. I want
to be able to replace the word "Company" in my example with any other
dimension name, and have the set be named "ListRows", instead of Company, or
Country or whatever. It works for measures, but the set always changes name
to what the dimension is called, and that messes up the next step of my
report.

Is this possible? How?
Example:

WITH set[Listrows] as '{[Company].members}'
MEMBER [MEASURES].[List_Qualified_Name] AS
'[Company].CurrentMember.UniqueName' MEMBER [MEASURES].[List_Report_Name] AS
'[Company].CurrentMember.Name' SELECT non empty
{[MEASURES].[List_Report_Name], [MEASURES].[List_Qualified_Name]} ON
AXIS(0), {[Listrows]} ON AXIS(1) FROM [MyCube]

All help appreciated!

Kaisa M. Lindahl



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.