SSAS MDX查询中的UNION

时间:2018-02-15 20:34:16

标签: ssas union mdx cube msbi

是否可以在SSAS MDX查询中编写UNION?

例如:

`SELECT
   {[Measures].[Sales Amount],[Measures].[Tax Amount]} ON COLUMNS,  
   {[Date].[Fiscal].[Fiscal Year].&[2002],
   [Date].[Fiscal].[Fiscal Year].&[2003]} ON ROWS  
   FROM [Adventure_Workenter code heres_1]  
   WHERE ([Sales Territory].[Southwest])  

   UNION

   SELECT
   {[Measures].[Sales Amount],
   [Measures].[Tax Amount] } ON COLUMNS,
   {[Date].[Fiscal].[Fiscal Year].&[2002],
   [Date].[Fiscal].[Fiscal Year].&[2003]} ON ROWS  
   FROM [Adventure_Works_2]  
   WHERE ([Sales Territory].[Southwest])`

即。两个立方体之间的UNION Adventure_Works_1和Adventure_Works_2

0 个答案:

没有答案