dbTalk Databases Forums  

MDX Query Error

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


Discuss MDX Query Error in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
john.r.carter@bankofamerica.com
 
Posts: n/a

Default MDX Query Error - 12-29-2005 , 12:56 PM






Can anyone help me w/ the query below.I get an unknown query error when
I try to run the below query.

Thanks in advance

SELECT
{ [Measures].[Responses], [Measures].[Responders], [Measures].[Trans
Amount] } ON COLUMNS,
{ ([Product].Members),([Providers].Members)} ON ROWS,
{ [Response Date].[Month].Members} ON PAGES
FROM
[Programmatic_Balance_Build]


Reply With Quote
  #2  
Old   
Deepak Puri
 
Posts: n/a

Default Re: MDX Query Error - 12-29-2005 , 10:22 PM






A couple of considerations that come to mind:

- Assuming that you're using AS 2005, the implict crossjoin on rows
should be framed by regular parentheses:

Quote:
SELECT
{[Measures].[Responses], [Measures].[Responders],
[Measures].[Trans Amount]} ON COLUMNS,
([Product].Members, [Providers].Members) ON ROWS,
{[Response Date].[Month].Members ON PAGES
FROM
[Programmatic_Balance_Build]
Quote:
- What OLAP client tool are you using - can it handle a 3rd PAGES MDX
query axis (Management Studio OWC complains)?


- Deepak

Deepak Puri
Microsoft MVP - SQL Server

*** Sent via Developersdex http://www.developersdex.com ***


Reply With Quote
  #3  
Old   
John Carter
 
Posts: n/a

Default Re: MDX Query Error - 12-29-2005 , 10:42 PM



Deepak,

Thanks for you reply.
The cube was created using AS2000. Hopefully my company will be moving
to 2005 by mid 2006.

I am using this MDX query to create a dataset within reporting services
2000. I will then use this dataset to create a matirx report.
Does that help?

*** Sent via Developersdex http://www.developersdex.com ***

Reply With Quote
  #4  
Old   
Deepak Puri
 
Posts: n/a

Default Re: MDX Query Error - 12-29-2005 , 11:20 PM



Hi John,

- AS 2000 doesn't support the implicit crossjoin syntax (assuming that
you intended a crossjoin), so instead:

Quote:
SELECT
{[Measures].[Responses], [Measures].[Responders],
[Measures].[Trans Amount]} ON COLUMNS,
Crossjoin([Product].Members, [Providers].Members) ON ROWS,
[Response Date].[Month].Members ON PAGES
FROM
[Programmatic_Balance_Build]
Quote:
- Based on testing with Reporting Services 2005, the PAGES axis was
handled fine, so hopefully that should work.


- Deepak

Deepak Puri
Microsoft MVP - SQL Server

*** Sent via Developersdex http://www.developersdex.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.