dbTalk Databases Forums  

Multiple column aliasing

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


Discuss Multiple column aliasing in the microsoft.public.sqlserver.olap forum.



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

Default Multiple column aliasing - 05-06-2004 , 05:24 AM






Hi,

I am writing a dynamic MDX query for Reporting services.
The column names are generated dynamically from the parameters.

I am able to create an alias of a member by saying:

WITH member [date].[month].[first] as '[date].[month].[410]',
SOLVE_ORDER = 1
select
{[date].[month].[first], [date].[month].[411] } on columns
from [policies by date]



But i need both columns to be dynamic.
So i was trying something :

WITH member [date].[month].[first] as '[date].[month].[410]',
SOLVE_ORDER = 1 member [date].[month].[second] as
'[date].[month].[411]', SOLVE_ORDER = 2

select
{[date].[month].[first] , [date].[month].[second]} on columns
from [policies by date]

but it fails and says:
"Unable to open cellset Connection to the server is lost. Formula
member name ... not valid"


Am i missing anything? Can anyone help me in making the second query
work.

You must be wondering that what makes me take this approach. Well, in
reporting services, i will be passing these month number as parameters
and as a limitation it doesnt supports dynamic binding of columns. Any
other approach is also welcomed.

Thanks in advance.

cheers
Rasti

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.