When you try to run a Multidimensional Expressions (MDX) query in Microsoft SQL Server 2012 Analysis Services (SSAS), you receive an error message that resembles the following:
Notes
For example, you receive the error message when you execute the following query against the AdventureWorks SQL Server 2008 R2 database in SSAS 2012:
The dimension '<named set alias>' was not found in the cube when the string, <named set alias>, was parsed.
Notes
- "Named set alias" is a placeholder for the dynamic name that you defined for the dimension.
- The MDX query is executed successfully in SSAS 2008 R2.
For example, you receive the error message when you execute the following query against the AdventureWorks SQL Server 2008 R2 database in SSAS 2012:
WITH
SET XQE_NS10 AS
Filter
(
[Product].[Product Categories].[Category].MEMBERS
,
Count
(
Filter
(
CrossJoin
(
[Product].[Product Categories].[Category].MEMBERS
,[Product].[Status].[Status].MEMBERS
)
,
(
[Measures].[Reseller Freight Cost]
,[Date].[Fiscal].[XQE_MDF_CM0]
)
> 20000
)
,IncludeEmpty
)
> 0
)
/* The named set [XQE_SA0] is defined in context of the COUNT operation */
MEMBER [Date].[Fiscal].[XQE_MDF_CM0] AS
IIF
(
Count
(
Descendants
(
[Geography].[Geography].CurrentMember
,[Geography].[Geography].[Country]
) AS [XQE_SA0]
,IncludeEmpty
)
> 0
,Aggregate
/* [XQE_SA0] is subsequently used in AGGREGATE */
(
[XQE_SA0]
,[Date].[Fiscal].DefaultMember
)
,NULL
)
SET XQE_NS0 AS
[Geography].[Geography].[Country].&[Canada]
SELECT
{XQE_NS0} ON 0
FROM [AdventureWorks]
WHERE
[Measures].[Reseller Freight Cost];