Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在Total Sales2019 年回来County = X OR City = Y。我怎样才能做到这一点?
Total Sales
County = X OR City = Y
这将返回错误:
SELECT {[Measures].[Total Sales]} ON 0, {[Date].[Date].[Year].&[2019]} ON 1 FROM [Cube] WHERE {([County].[County].[X]),([City].[City].[Y])}
函数中指定的两个集合具有不同的维度。
您需要解决集合的层次结构和维度。使用下面的示例。
SELECT {[Measures].[Total Sales]} ON 0, {[Date].[Date].[Year].&[2019]} ON 1 FROM [Cube] WHERE { ([County].[County].[X],[City].[City].defaultmember), ([County].[County].defaultmember,[City].[City].[Y]) }