olap-cube

How to use UNION in MDX

Deadly 提交于 2019-12-02 22:48:46
问题 I want to UNION the below MDX query. For these two queries measures and dimensions are different for the same date range. Please help me to get out of this. SELECT NON EMPTY { [Measures].[Number of es2] } ON COLUMNS, NON EMPTY { ([Date].[Year].[Year].ALLMEMBERS * [Date].[Month].[Month].ALLMEMBERS ) } DIMENSION PROPERTIES MEMBER_CAPTION, MEMBER_UNIQUE_NAME ON ROWS FROM ( SELECT ( [Date].[Date Hierarchy].[Date].&[20170101] : [Date].[Date Hierarchy].[Date].&[20180101] ) ON COLUMNS FROM ( SELECT

Linked server dynamic catalog for executing MDX through OpenQuery

允我心安 提交于 2019-12-02 15:43:26
问题 I have multiple OLAP databases in my project, so is it possible to dynamically decide the catalog for executing this MDX query? SELECT * FROM OpenQuery(OLAP_SERVER, 'WITH MEMBER measures.X AS dimensions.count SELECT Measures.X ON 0 FROM MyCube') as X I don't want to create a separate linked server for each of the OLAP database. Both the relational and cube databases reside on the same physical machine. My linked server configuration are: EXEC master.dbo.sp_addlinkedserver @server = N'OLAP

How to use UNION in MDX

大兔子大兔子 提交于 2019-12-02 09:46:00
I want to UNION the below MDX query. For these two queries measures and dimensions are different for the same date range. Please help me to get out of this. SELECT NON EMPTY { [Measures].[Number of es2] } ON COLUMNS, NON EMPTY { ([Date].[Year].[Year].ALLMEMBERS * [Date].[Month].[Month].ALLMEMBERS ) } DIMENSION PROPERTIES MEMBER_CAPTION, MEMBER_UNIQUE_NAME ON ROWS FROM ( SELECT ( [Date].[Date Hierarchy].[Date].&[20170101] : [Date].[Date Hierarchy].[Date].&[20180101] ) ON COLUMNS FROM ( SELECT ( { [PracHistory].[Name].&[In] } ) ON COLUMNS FROM [Cube])) WHERE ( [PracHistory].[Name].&[In] ) SELECT

VBA to change Pivot Filter in OLAP cube to a range

孤街醉人 提交于 2019-12-01 11:35:16
问题 I have a pivot table that pulls data from an OLAP cube, and I'd like to create a macro to filter a pivot field that contains 'Week of Year' based on the value in another cell, so that I can easily change the time frame of the table. My experience with cube sets is very limited, so I used the macro recorder to see what was happening. The sample code I got was: ActiveSheet.PivotTables("PivotTable3").PivotFields( _ "[Time].[Week of Year].[Week of Year]").VisibleItemsList = Array( _ "[Time].[Week

Data Warehouse vs. OLAP Cube?

别来无恙 提交于 2019-11-29 20:25:14
Can anyone explain what is really distinction between Data Warehouse and OLAP Cubes? Are they different approach for same thing? Is one of them deprecated in comparison with other? Are there any performance issues in one of them? Any explanation is welcomed A data warehouse is a database with a design that makes analyzing data easier† (often with data from multiple sources). It is usually composed of fact tables and dimension tables, and often aggregate tables. OLAP is a set of operations that one can do on a data set, such as pivoting, slicing, dicing, drilling. For example, one can do OLAP

Data Warehouse vs. OLAP Cube?

时光总嘲笑我的痴心妄想 提交于 2019-11-27 09:44:19
问题 Can anyone explain what is really distinction between Data Warehouse and OLAP Cubes? Are they different approach for same thing? Is one of them deprecated in comparison with other? Are there any performance issues in one of them? Any explanation is welcomed 回答1: A data warehouse is a database with a design that makes analyzing data easier† (often with data from multiple sources). It is usually composed of fact tables and dimension tables, and often aggregate tables. OLAP is a set of