dbTalk Databases Forums  

Obtaining Calculated member definition from PTS

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


Discuss Obtaining Calculated member definition from PTS in the microsoft.public.sqlserver.olap forum.



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

Default Obtaining Calculated member definition from PTS - 12-01-2004 , 09:13 AM






Hi,

From a client application, I would like to obtain the definition of a
given calculated member. The cube is a Virtual cube and the calculated
measures could be defined as sums of other non-calculated measures. Is
this possible using Pivot Table Services API? If so, can someone point
me to the exact functions to be used?

Thanks

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

Default RE: Obtaining Calculated member definition from PTS - 12-01-2004 , 11:25 AM






Hello Yash,
you can use schemarowsets.

dim conn as new adodb.connenction
dim rec as new adodb.recordset

conn.open "Provider......"
Set rec = conn.OpenSchema(adSchemaMeasures)

HTH
Joerg



"Yash" wrote:

Quote:
Hi,

From a client application, I would like to obtain the definition of a
given calculated member. The cube is a Virtual cube and the calculated
measures could be defined as sums of other non-calculated measures. Is
this possible using Pivot Table Services API? If so, can someone point
me to the exact functions to be used?

Thanks


Reply With Quote
  #3  
Old   
MurthyJ
 
Posts: n/a

Default RE: Obtaining Calculated member definition from PTS - 12-01-2004 , 02:43 PM



If I understand the question correctly, you want to get the calculated
measure defined by the user on the client OWC/Pivot Table?

In OWC Pivot table, you can use PivotTable.XMLData which returns you the XML
version of the current state of pivot table. In this you will find the
calculated measures (and everything else used to query/display) as PivotField
elements. If you know the name of the PivotField (calculated measure), you
can then extract the expression from the sub elements.

Murthy.

"Joerg" wrote:

Quote:
Hello Yash,
you can use schemarowsets.

dim conn as new adodb.connenction
dim rec as new adodb.recordset

conn.open "Provider......"
Set rec = conn.OpenSchema(adSchemaMeasures)

HTH
Joerg



"Yash" wrote:

Hi,

From a client application, I would like to obtain the definition of a
given calculated member. The cube is a Virtual cube and the calculated
measures could be defined as sums of other non-calculated measures. Is
this possible using Pivot Table Services API? If so, can someone point
me to the exact functions to be used?

Thanks


Reply With Quote
  #4  
Old   
yashgt@yahoo.com
 
Posts: n/a

Default Re: Obtaining Calculated member definition from PTS - 12-02-2004 , 03:10 AM



Hi,
I am not referring to the OWC Pivot table. I meant the Pivot table
service that acts as the interface between a client application and an
OLAP server. This interface is used by client like Crystal Analysis to
connect to remote or local OLAP servers.
In our application, we would like to use it for firing MDX queries on
an OLAP cube, and also, in certain cases, we will have to obtain the
definition of certain calculated measures. This is like obtaining the
definition from a data dictionary.

Yash


MurthyJ wrote:
Quote:
If I understand the question correctly, you want to get the
calculated
measure defined by the user on the client OWC/Pivot Table?

In OWC Pivot table, you can use PivotTable.XMLData which returns you
the XML
version of the current state of pivot table. In this you will find
the
calculated measures (and everything else used to query/display) as
PivotField
elements. If you know the name of the PivotField (calculated
measure), you
can then extract the expression from the sub elements.

Murthy.

"Joerg" wrote:

Hello Yash,
you can use schemarowsets.

dim conn as new adodb.connenction
dim rec as new adodb.recordset

conn.open "Provider......"
Set rec = conn.OpenSchema(adSchemaMeasures)

HTH
Joerg



"Yash" wrote:

Hi,

From a client application, I would like to obtain the definition
of a
given calculated member. The cube is a Virtual cube and the
calculated
measures could be defined as sums of other non-calculated
measures. Is
this possible using Pivot Table Services API? If so, can someone
point
me to the exact functions to be used?

Thanks



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.