I am new to the Trace program and new to MDX, both of which I'm using it to help sort out a problem I'm having with a cube dimension in Analysis Services. I'm using Visual Studio 2008 to create an Analysis Services project and am using the AdventureWorks database, installed in SQL Server 2008.
The problem is that when I use the Browser to drag and drop a customer's name as a column heading, I do not get a full compliment of names. In order for me to see all the available names, I must first select the "Show Empty Cells" option. The peculiar thing about this is that nothing else -- no other column, no row, no measure, no filter -- but the one column is present. In other words, nothing that I can see should be classifying these names as "empty", since nothing else is present with which to compare it.
Acting on a previous recommendation, I ran the SQL Server Profiler, added my column to the browser, and used the Profiler's trace component to capture the MDX query I generated. I then ran SQL Server Management Studio in "Analysis Services" mode, created a new MDX query, and copied and pasted the traced view into the MDX query. However, I always get errors when attempting to parse the queries I've imported. I'm so new to this whole process, I don't know how to diagnose or evaluate the errors I'm getting.
I'm not sure what next steps to take. Perhaps I'm using the wrong tools to evaluate my "Empty Cell" anomaly. I have a suggestion as a future addition to this superb video series: using the Analysis Services instance of SQL Server Management Studio to create MDX queries against the AdventureWorks database.
Your assistance is most appreciated.
Thanks, ~Peter Ferber