![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Does any one know how to add a Calculated member to the Cube using the DSO objects (using scripts). |
#3
| |||
| |||
|
|
This VBScript working snippet should help: set dsoServer = CreateObject("DSO.Server") dsoServer.Connect "LocalHost" Set dsoCube= dsoServer.MDStores("Foodmart 2000").Cubes("Sales") Set dsoCommand= dsoCube.Commands.AddNew("Test Member") dsoCommand.CommandType=1 dsoCommand.Statement= "Create Member CURRENTCUBE.Measures.[Test Member] as '[Measures].[Unit Sales] * 2'" dsoCube.Update This is just the basic code, you should add locking, error handling... HTH, Brian www.geocities.com/brianaltmann/olap.html "Jeethendar" wrote: Does any one know how to add a Calculated member to the Cube using the DSO objects (using scripts). |
![]() |
| Thread Tools | |
| Display Modes | |
| |