Hi all,
I'm an absolute novice on MDX and need some assistance...
The result I am after is the set of products (Product Dimension) where there exists related order lines (Order Lines Measure Group) that were short shipped, on a nominated month. Here is what I have:
SELECT {[Measures].[Despatch Lines Count]} ON 0, NON EMPTY(Filter([Products].[Inhouse Stock Code].[Inhouse Stock Code].Members, [Measures].[Delivered In Full - Order Lines] = 0)) ON 1 FROM [iSupplyCube] WHERE [Generic Date].[Month].&[2013-9]
This works ok, until I want to bring in measures from another measure group e.g.
SELECT {[Measures].[Despatch Lines Count], [Measures].[Receipts Count]} ON 0, NON EMPTY(Filter([Products].[Inhouse Stock Code].[Inhouse Stock Code].Members, [Measures].[Delivered In Full - Order Lines] = 0)) ON 1 FROM [iSupplyCube] WHERE [Generic Date].[Month].&[2013-9]
My result now includes all product that were related to the Receipts measure group. I don't want this, I want to start with my set of products that were short shipped and then return info from other measure groups - only for those 'short shipped products'.
I am no doubt missing something fundamental with MDX / Cubes...
Appreciate you assistance - thanks for reading.
Clay