MDX - Using "iif" function in the "Where" section
Posted
by Duc Duy Nguyen
on Stack Overflow
See other posts from Stack Overflow
or by Duc Duy Nguyen
Published on 2010-03-16T15:21:26Z
Indexed on
2010/03/17
13:21 UTC
Read the original article
Hit count: 450
Hi I'd like to know how to make that "iif" work.
Basically, I need to filter the engineering "product codes" when originator is "John Smith". currentmember is not working or that iif is not working,
SELECT
{
(
[Time].[Fiscal Hierarchy Time Calculations].[Month to Date],
[Measures].[Sell - Bookings]
)
} ON COLUMNS,
[Originators].[Originator One Letter Name].Children ON ROWS
FROM [Sales]
WHERE
(
[Time].[Fiscal Month].&[2010-02-01T00:00:00],
IIF
(
[Originators].[Originator One Letter Name].CurrentMember = "John Smith",
Except
(
[Product Codes].[Product Primary Subcategory].Children,
[Product Codes].[Product Primary Subcategory].&[ENGINEERING]
),
[Product Codes].[Product Primary Subcategory].Children
)
);
Any ideas?
Thanks in advance.
Duy
© Stack Overflow or respective owner