它并不以在大型数据集上具有良好的性能而闻名,但您是否阅读过 LOOKUPCUBE
http://msdn.microsoft.com/en-us/library/ms144720.aspx
Returns the value of a Multidimensional Expressions (MDX) expression
evaluated over another specified cube in the same database.
这是一个很好的例子:
WITH MEMBER [Measures].[Lookup Internet Order Count] AS
LOOKUPCUBE("Mined Customers", "([Measures].[Internet Order Count],
[Customer].[Customer Geography].[Country].&[" +
[Customer].[Customer Geography].CurrentMember.Name + "])")
SELECT [Customer].[Customer Geography].[Country] ON COLUMNS,
{
[Measures].[Internet Sales Amount],
[Measures].[Lookup Internet Order Count]
} ON ROWS
FROM [ADVENTURE WORKS]
取自: http: //www.bidn.com/blogs/DustinRyan/ssis/814/lookupcube-function-mdx-query-performance-test