dbTalk Databases Forums  

Measures and Calculated Measures

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


Discuss Measures and Calculated Measures in the microsoft.public.sqlserver.olap forum.



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

Default Measures and Calculated Measures - 04-09-2005 , 04:14 AM






Hi All,

Have a look at the following link :
http://msdn.microsoft.com/library/de...ons_rowset.asp


which field can i use to diffrentiate between Measures and Calculated
Measures when retriving Cube information from MDX ?


Reply With Quote
  #2  
Old   
Deepak Puri
 
Posts: n/a

Default Re: Measures and Calculated Measures - 04-09-2005 , 03:44 PM






This thread discussed how to determine the difference:

http://groups-beta.google.com/group/...rver.olap/msg/
deb60eb02d960eae
Quote:
Newsgroups: microsoft.public.sqlserver.olap
From: "Jéjé"
Date: Mon, 7 Feb 2005 09:26:51 -0500
Subject: Re: how to verify if the current measure is a calculated one?

thanks.
I'm just surprise that, there is no simple function to test this.

I also found this method:
Intersect({Measures.currentmem*ber}, Measures.members).count

the count = 1 if the measure is a standard measure or 0 if its a
calculated
one.
...
Quote:

- Deepak

Deepak Puri
Microsoft MVP - SQL Server

*** Sent via Developersdex http://www.developersdex.com ***


Reply With Quote
  #3  
Old   
Mosha Pasumansky [MS]
 
Posts: n/a

Default Re: Measures and Calculated Measures - 04-10-2005 , 06:00 PM



Another alternative is Measures.CurrentMember.Properties("MEMBER_TYPE")

--
==============================*=================== =
Mosha Pasumansky - http://www.mosha.com/msolap
Analysis Services blog at http://www.sqljunkies.com/WebL*og/mosha
Development Lead in the Analysis Server team
All you need is love (John Lennon)
Disclaimer : This posting is provided "AS IS" with no warranties, and
confers no rights.
==============================*=================== =
"Deepak Puri" <deepak_puri (AT) progressive (DOT) com> wrote

Quote:
This thread discussed how to determine the difference:

http://groups-beta.google.com/group/...rver.olap/msg/
deb60eb02d960eae

Newsgroups: microsoft.public.sqlserver.olap
From: "Jéjé"
Date: Mon, 7 Feb 2005 09:26:51 -0500
Subject: Re: how to verify if the current measure is a calculated one?

thanks.
I'm just surprise that, there is no simple function to test this.

I also found this method:
Intersect({Measures.currentmem*ber}, Measures.members).count

the count = 1 if the measure is a standard measure or 0 if its a
calculated
one.
..



- Deepak

Deepak Puri
Microsoft MVP - SQL Server

*** Sent via Developersdex http://www.developersdex.com ***



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.