dbTalk Databases Forums  

create member + solveorder + dso

microsoft.public.sqlserver.olap microsoft.public.sqlserver.olap


Discuss create member + solveorder + dso in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Lurdes Hernandez
 
Posts: n/a

Default create member + solveorder + dso - 01-07-2004 , 02:01 PM






I know how to create a cube with DSO, but I have a problem with the create member when I want to add the solveorder property. there is no problem with the format string (in theory is the same, but ...)
Set dsoCmd = dsoCubo.Commands.AddNew("% Aceptado")
dsoCmd.CommandType = cmdCreateMember
dsoCmd.Statement = "CREATE MEMBER [" & strNombreCubo & "].[Measures].[% Aceptado] AS " & _
"'IIF ([Measures].[Importe Entrado] = 0, 0, [Measures].[Importe Aceptado] / [Measures].[Importe Entrado])'," & _
"FORMAT_STRING = 'Percent'"

I wonder if someone knows how to solve this.
I hope i have been able to explain the problem.

Waiting for a solution

Reply With Quote
  #2  
Old   
Bob
 
Posts: n/a

Default RE: create member + solveorder + dso - 01-08-2004 , 02:46 PM







don't use '%' symbol in nam
----- Lurdes Hernandez wrote: ----

I know how to create a cube with DSO, but I have a problem with the create member when I want to add the solveorder property. there is no problem with the format string (in theory is the same, but ...
Set dsoCmd = dsoCubo.Commands.AddNew("% Aceptado"
dsoCmd.CommandType = cmdCreateMembe
dsoCmd.Statement = "CREATE MEMBER [" & strNombreCubo & "].[Measures].[% Aceptado] AS " &
"'IIF ([Measures].[Importe Entrado] = 0, 0, [Measures].[Importe Aceptado] / [Measures].[Importe Entrado])'," &
"FORMAT_STRING = 'Percent'

I wonder if someone knows how to solve this
I hope i have been able to explain the problem.

Waiting for a solution

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.