我正在使用 Visual Studi 和 Management Sql Server Studio 学习 MDX 和 OLAP。实际上我做了一个立方体“销售”
我试着得到“每个产品和每年销售额最高的员工”,我写道
With MEMBER measures.[Maximun Sales] AS
MAX(([Product].[ProductName].[ProductName],[Employee].[Geography]. [Employee]), [Measures].[Sales Amount])
MEMBER measures.[EmpLoyee] AS TOPCOUNT(([Product].[ProductName]. [ProductName], [Employee].[Geography].[Employee]), 1, [Measures].[Sales Amount]).ITEM(0).NAME
SELECT { measures.[Maximun Sales], MEASUREs.[EmpLoyee]} ON COLUMNS,
([Product].[ProductName].[ProductName], [Order Date].[Calendar].[Year]) ON ROWS
FROM SALES
但是查询没有用。请问,有人可以帮我吗?谢谢