![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I have a cube with no visible measures, and 2 visible calculated members. If I use the MetaData Scripter to script out the cube and then run the script file with no changes at all, the calculated members fail to get created. Anyone have any idea why? Here's the code that the scripter generated for the 2 members: ' Scripting cube command Inventory for cube Capacity012004_Shared strStatement = "" strStatement = strStatement & "CREATE MEMBER CURRENTCUBE.Measures.[Inventory] AS 'IIF([Intel_Time].currentmember.level.ordinal = [Intel_Time].[Month].ordinal,([Measures].[Inventory_sum]),Max(Descendants([I |
|
[Measures].[Inventory_sum]))', NON_EMPT" strStatement = strStatement & "Y_BEHAVIOR = 'Inventory_sum'" BuildCubeCommand sstrName_Database, sstrName_Cube, "Inventory", 1, "", strStatement, 0 ' Scripting cube command Requirements for cube Capacity012004_Shared strStatement = "" strStatement = strStatement & "CREATE MEMBER CURRENTCUBE.Measures.[Requirements] AS 'IIF([Intel_Time].currentmember.level.ordinal = [Intel_Time].[Month].ordinal,([Measures].[Requirements_sum]),Max(Descendants |
|
[Measures].[Requirements_sum]))'," strStatement = strStatement & " NON_EMPTY_BEHAVIOR = 'Requirements_sum'" BuildCubeCommand sstrName_Database, sstrName_Cube, "Requirements", 1, "", strStatement, 0 Thanks, John |
#3
| |||
| |||
|
#4
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |