Hi all,
I'm a newbie in MDX and i've been wrapping my head around this for a while. My problem is that I have a query that returns some measure values and I need the distinct values of the measure (to use in a SSRS report), but since the tuples are all diferent I can't use the distinct function... The following example query (from AdventureWorks cube) returns the order quantity of certain product in a specific day:
with set [big wheel bikes] as
{[Product].[Product].&[357],[Product].[Product].&[361],
[Product].[Product].&[376],[Product].[Product].&[390],
[Product].[Product].&[582],[Product].[Product].&[571],
[Product].[Product].&[225]}
select [Measures].[Internet Order Quantity] on 0,
[big wheel bikes] on 1
from [Adventure Works]
where [Date].[Calendar].[Date].&[1067]
Returns:
Internet Order Quantity
Mountain-200 Silver, 46 2
Mountain-200 Black, 42 3
Road-250 Black, 48 1
Road-550-W Yellow, 48 1
Road-350-W Yellow, 44 2
Touring-3000 Yellow, 58 1
AWC Logo Cap 8
Imagine I want to do a report to verify the cases used in product delivery of those product in that day. I need a query that gives me the distinct order quantity, which means the values 1,2,3,8... is it even possible?
PS - I'm using SQL Server 2008 Standard