Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 205
  • Last Modified:

Discrepancy in datasets derived from Dimension and Cube

I am using Visual Studio 2008 Analysis Services and processing the AdventureWorks database to create and process a cube.   When I click on the dropdown menu for the field, I see all the fields listed, and if I choose "Show Empty Cells", I see all of the members showing up.  The peculiar thing is that every customer has at least one purchase, but many are showing up as "empty" for the given member, i.e., has no Internet Sales figure attached to that name.  These so-called "empty" members do show sales values when I independently verify the results by running a view against the table.  The members for which I do show values are almost always correct, which means that the application is selectively excluding customers from showing up as having purchases, but accurately returning calculations for the customers it finds.  

I find the entire situation quite mysterious, and your help in this matter is greatly appreciated.

Thank you, ~Peter Ferber


Dimension-Recordset.bmp
Cube-Recordset.bmp
ShowEmptyCells.bmp
0
PeterFrb
Asked:
PeterFrb
  • 5
  • 3
1 Solution
 
rob_farleyCommented:
It seems to me that you may be finding records that don't have any measures in any of the measure groups - so as far as the cube is concerned, they are records that will always be empty.

If you run Profiler to see what MDX query BIDS is running, you'll probably see a NON_EMPTY in there.

Rob
0
 
PeterFrbAuthor Commented:
Many thanks, Rob.  The Profiler sounds like the tool that I need but have never used, although I did run an instance of it.  Perhaps the best thing would be a video demonstration of its use.  Does anyone know of such a thing?  

Best, ~Peter
0
 
rob_farleyCommented:
Hmm... try a bing search for it.

But it's quite easy really.

Run Profiler, make a new trace. Connection to Analysis Services, and look at the events. There should stuff about Queries in there. Click All Columns and quickly look to see what's in there.

Then hit Run, and see what comes up. Run your query in the Cube Browser, and see what appears in Profiler.

Then grab the queries and run them in Management Studio (connected to Analysis Services again).

Rob
0
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 
PeterFrbAuthor Commented:
Well, this is just fascinating.  I see the MDX query that I created when I populated the crosstab.  I then ran the SQL Server Management Studio for Analysis Services and, for the first time, saw the cubes I've been developing in Visual Studio.  You've really helped me to put a number of pieces together were mysterious, and I thank you for this.  I have one final question: can you actually run a query from the Analysis Services side of Management Studio (I didn't see a way to do this), or can the query be run from the Database Engine?  
Thank you for expanding my horizons.  ~Peter
0
 
PeterFrbAuthor Commented:
Thanks for the great info!  I still have a lot to learn, but you've clearly pointed in the right direction.  ~Peter
0
 
PeterFrbAuthor Commented:
I just figured out how to create an MDX query.  Well done, and thanks.
~Peter
0
 
rob_farleyCommented:
:) You've already answered your own question I see. Terrific!

Now go and buy MDX Solutions by George Spofford (and others), to learn how to write better MDX.

Rob
0
 
PeterFrbAuthor Commented:
Good stuff!  A friend actually loaned me that very book, and I've started reviewing it.  

Best, ~Peter Ferber
0

Featured Post

NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

  • 5
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now