dbTalk Databases Forums  

MDX - PASSING PARAMETERS IN AS2005 - NEED CLARIFICATION

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


Discuss MDX - PASSING PARAMETERS IN AS2005 - NEED CLARIFICATION in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
BALAJI K via SQLMonster.com
 
Posts: n/a

Default MDX - PASSING PARAMETERS IN AS2005 - NEED CLARIFICATION - 02-07-2006 , 11:29 AM






I am Designing a Report in Reporting Services Design Mode, i need to pass a
parameter to the MDX query with DRILLTHROUGH OPTION

But when I Past this query in the Data tab the (Run) button is disabled......

="DRILLTHROUGH
SELECT {[Measures].[Online Course Count]} ON COLUMNS,
{[" & Parameters!pX_sUser.Value & "]} ON ROWS
FROM
[SessionCube]
RETURN
[$Dim User].[sUser] as [User],
[$Dim User].[s City] as [User City],
[$Dim User].[s Country] as [User Country],
[$Dim User].[s Job Title] as [User JobTitle]"

But When I Past the below code
( " - before =)
"=DRILLTHROUGH
SELECT {[Measures].[Rpt FACT Online Course Count]} ON COLUMNS,
{[" & Parameters!pX_sUser.Value & "]} ON ROWS
FROM
[ILNETLSessionCube]
RETURN
[$Measures].[Rpt FACT Online Course Count] as [Count],
[$ETL Dim User].[sUser] as [User],
[$ETL Dim User].[s City] as [User City],
[$ETL Dim User].[s Country] as [User Country],
[$ETL Dim User].[s Job Title] as [User JobTitle]"

The Run button is getting enabled, It gives me a syntax error
The syntax for '&' is incorrect, what could be the problem...

Thanks
Balaji

--
Message posted via http://www.sqlmonster.com

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.