How to get current MDX in Tableau? - mdx

Given a PivotTable in Tableau, is there a way to know the associated MDX Query?
I would help my understanding current pivot table and fix potential misconstructions.

Unlike ProClarity and some other MDX-generating tools, you can't see the MDX being created while in the UI. However, if you open up the \My Documents\My Tableau Repository\Logs folder, you'll see Desktop's logs. You can open those up and see each and every MDX statement that has been executed against SSAS.
Hope this helps!

Related

If an existing SSRS report is giving wrong data and I have troubleshoot it...where do I start first?

I have few existing SSRS reports here which are giving some inaccurate info. I want to fix those...where should I start? is it the data source in Report Builder? Where else should I look?
Thanks
You should be able to find the query that is being run or the stored procedure in the datasets. Then you can open those and see what datasource it is using. Some could be shared so you might have to look a bit to find them but that tells you the server. So then you can troubleshoot.

SQL SSRS Report Builder - cannot see views only tables?

I am using SSRS Report Builder with SQL 2005 and I am trying to build some reports from my data sources.
However when I bring up the data source entities it is only showing tables not views which is what I want to use to make the coding neater and easy to use.
Am I missing something? Can anyone advise a way to get the views to be shown up in the Entities options?
Any help much appreciated.
Thanks,
Based on the note in the following posting, if you created your model using Report manager it does not show views. You need to use Development studio.
See this link

View MDX used in Cube browser

I am trying to see the MDX which is used in Cube Browser. I searched on google and once again I am being redirected StackOverflow's post View MDX query generated while browsing a cube
Yes, I can see the MDX but when I try to execute the same MDX (copied from Profiler and pasted in SSMS) in SSMS- Analysis server, it does not executes and gives me error.
Am I doing something wrong here? If not, is there any other way to get the MDX out of the cube?
Thanks
Would be helpful to have the error message, but I guess the definition of this set (?) is missing :
select non empty [{73C699C7-F74B-48A7-96AE-E131412D0725}Pivot73Axis0Set0] ...
from your request. Somehow you should have a WITH SET ... in the MDX request as well.
I tried working this out and consulted number of forums but could not get an absolute answer.
But I found a way around for the same using MS EXcel and a plugin http://olappivottableextend.codeplex.com/
you need to include the creation of the set [{73C699C7-F74B-48A7-96AE-E131412D0725}Pivot73Axis0Set0]
It's probably a few line before the code you posted
After making some deep analysis, I have found that SQL Profiler is more awesome tool which helps you to get this query.
What you need to do is Capture all the query between the batch operations and then put them in MDX Query pane in SSMS.
You can execute them one by one and get the result.
A very simple solution:
If you have EXCEL 2010 installed + PowerPivot plugin...
So you open excel 2010 you go to "Powerpivot Icon" you try to open a new connexion ...Then you'll see a window title "MDX STATEMENT" you choose design...
When you finishe designing your cube Y'll see the MDX Statement related...

view MDX query from SSMS

Any chance I can see the query generated when I'm browsing a cube through SSMS?
I supposed I could run a trace on the DB to capture it, but just wondering if there is an easier way.
Thanks
I am not sure about SSMS (other than trace) but there is an add in for excel which allows you to see the MDX generated on pivot tables. The MDX is sort of similar:
http://olappivottableextend.codeplex.com/
Using the SQL Server Profiler you could see the query generated. Just connect to Analysis Services server and save the trace.

How to present the result of a dynamic pivot request in SQL Server 2005 Reporting Services?

I have a dynamic pivot request I would like to present in a report of Reporting Services.
As it is dynamic, the number of columns of the result is variable (as is the name of the columns). How could I create a report showing a table handling this variable number of columns ?
You can also use the Matrix control to pivot the results in the report instead of in the query. This way you don't have to use any custom solution.
You will need to implement a dynamic report definition file. Here is a link that will help you get started. It is a VS Project that dynamically creates a RDLC file with a table, via a datatable. I used it as the base of my current report system.
C# Version
VB.NET Version
If you have any questions about this, let me know. I've been generating RDLC files for quite a while now, and encountered pretty much every issue you could think of :)