![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
If you search through the SQL Server 2000 online documentation for the "Create cube"- statement, you can find the following "Use the following code to create a calculated member. You must use single quotes to enclose the expression for the calculated member. The OLE DB specification, however, does not require these quotes. CREATE CUBE MYWAREHOUSE ( DIMENSION . . . . . . , COMMAND (CREATE MEMBER [MYWAREHOUSE].[MEASURES]. [WAREHOUSEPROFIT] AS '[MEASURES].[WAREHOUSE SALES] - [MEASURES].[WAREHOUSE COST]') )" Maybe that helps. Lutz |
#3
| |||
| |||
|
|
If you search through the SQL Server 2000 online documentation for the "Create cube"- statement, you can find the following "Use the following code to create a calculated member. You must use single quotes to enclose the expression for the calculated member. The OLE DB specification, however, does not require these quotes. CREATE CUBE MYWAREHOUSE ( DIMENSION . . . . . . , COMMAND (CREATE MEMBER [MYWAREHOUSE].[MEASURES]. [WAREHOUSEPROFIT] AS '[MEASURES].[WAREHOUSE SALES] - [MEASURES].[WAREHOUSE COST]') )" Maybe that helps. |
#4
| |||
| |||
|
#5
| |||
| |||
|
|
You can use ALTER CUBE........ For complete syntax you can search it in books online of analysis manager. Here is a cut/paste from that books online Note that its not only CREATE MEMBER its ALTER CUBE CREATE MEMBER. This example shows how to create a new dimension member. To add a member, specify its parent member in the CREATE DIMENSION MEMBER statement, and specify a key that uniquely identifies the member. The following code adds Idaho and Boise to the Geography dimension: ALTER_CUBE = ALTER CUBE Sales CREATE DIMENSION MEMBER USA.IDAHO, KEY = STATE_IDAHO, CREATE DIMENSION MEMBER IDAHO.BOISE, KEY=CITY_BOISE Please let me know if this worked or not. Thanks |
![]() |
| Thread Tools | |
| Display Modes | |
| |