WHERE&从T-SQL角度看。
请参阅数据透视表MDX的副本。我在数据透视表中有[客户状态],[查询创建日期。日期层次结构]和[用户团队层次结构]的过滤器。
我不明白为什么有些过滤器会转到WHERE而其他过滤器转到FROM。
SELECT
{ [Measures].[Unique Cust Ref Distinct Count], [Measures].[Number of Distinct Customers] } ON COLUMNS,
{ [Request].[Cust Type].children } ON ROWS
FROM (
SELECT (
{ [Request].[Request Created By Team].&[CINS]
,[Request].[Request Created By Team].&[CIST]
,[Request].[Request Created By Team].&[DCISS]
, [Request].[Request Created By Team].&[WRT] } ) ON COLUMNS
FROM [CRM Reporting]
)
WHERE ( [Customer].[Customer Status].&[Active], [Request Creation Date].[Date Hierarchy].[Year].&[2014] )
答案 0 :(得分:3)
MDX中WHERE和subselect之间的主要区别是:
EXISTS
之类的内容。