dbTalk Databases Forums  

Custom MDX for RS report

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


Discuss Custom MDX for RS report in the microsoft.public.sqlserver.olap forum.



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

Default Custom MDX for RS report - 11-10-2006 , 01:21 PM






I must be missing something. In Reporting Services I am creating a
report in based on an Analysis Services cube. I want to add my own
dataset to the report. I click on "<New Dataset>" and type my custom
MDX in the Query string field. I then get this error:

"Modifications to the MDX query cannot be saved. You must use the MDX
Query Builder to edit an MDX query that is not an expression."

I think the Query Builder is very simplistic, and doesn't allow me to
design queries with basic things like topcount, etc. (And, for that
matter, doesn't allow me to view the MDX it is generating while I am
working on the query. I have to muddle through monitoring tools to
catch it.) So if I want to create a report with Top 5 companies, how
do I do this if I can't edit the MDX? Again, I must be missing
something. Please illuminate.


Reply With Quote
  #2  
Old   
Cindy Lee
 
Posts: n/a

Default Re: Custom MDX for RS report - 11-10-2006 , 05:44 PM






You can put any mdx query you want in there.

You can't run the mdx query if it has vaiables in there, or surrounded by
quotes. I fill in the values of my mdx query, then run it to get the data
fields. Then put my variables in, and query in quotes.


"Kyler" <kylernunery (AT) gmail (DOT) com> wrote

Quote:
I must be missing something. In Reporting Services I am creating a
report in based on an Analysis Services cube. I want to add my own
dataset to the report. I click on "<New Dataset>" and type my custom
MDX in the Query string field. I then get this error:

"Modifications to the MDX query cannot be saved. You must use the MDX
Query Builder to edit an MDX query that is not an expression."

I think the Query Builder is very simplistic, and doesn't allow me to
design queries with basic things like topcount, etc. (And, for that
matter, doesn't allow me to view the MDX it is generating while I am
working on the query. I have to muddle through monitoring tools to
catch it.) So if I want to create a report with Top 5 companies, how
do I do this if I can't edit the MDX? Again, I must be missing
something. Please illuminate.




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

Default Re: Custom MDX for RS report - 11-11-2006 , 12:54 AM



Based on your description, you are always in the Design Mode of the MDX
Query Designer - you can switch to the Query Mode by clicking the
rightmost toolbar icon, as explained with screenshots here:

http://msdn2.microsoft.com/en-us/library/ms403829.aspx
Quote:
SQL Server 2005 Books Online

Analysis Services MDX Query Designer User Interface
...
Graphical MDX Query Designer in Query Mode

To change the graphical query designer to Query mode, click the Design
Mode button on the toolbar.
...
Quote:

- 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.