每次嘗試運行此查詢時,我都會超時。它似乎工作,直到我添加到「([成品]。[主] .MEMBERS,」部分到查詢的行部分。任何想法?使用Crossjoin和篩選時間輸出的MDX查詢
SELECT NON EMPTY {[Measures]。[Retailer Event [促銷計劃] [促銷計劃] [實際,WB總計,LE]],[度量] [增量Cnsmp單位(實際)]} ON COLUMNS,
NON EMPTY {[Finished Product]。[Primary] .MEMBERS * [Promotion Plan] [促銷計劃] [活動] .MEMBERS} HAVING LEFT([Promotion Plan]。[Promotion Plan] .CurrentMember.Name,6)=「Anchor」ON ROWS FROM [PEA] WHERE([Time]。 [會計] [會計年度] & [2017])