dbTalk Databases Forums  

Calculated formula problem

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


Discuss Calculated formula problem in the microsoft.public.sqlserver.olap forum.



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

Default Calculated formula problem - 03-11-2005 , 01:13 PM






Quote:
Hi there,
How Can I do this in calculated members ?
Here is my case..

Quote:
Dim Population Calculated members result
12345 100 (100-200)/200
23456 50 (50-200)/200
54678 20 (20-200)/200
09990 10 (10-200)/200
10000 20 (20- 200)/200
--------------------- --------
200
Please help...
Thanks


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

Default Re: Calculated formula problem - 03-11-2005 , 01:57 PM






Are you looking for a calc. measure like this:

Quote:
With Member [Measures].[TotalPopulation] as
'Sum(StrToSet("Axis(1)"), [Measures].[Population])'
Member [Measures].[PctOfTotalPop] as
'[Measures].[Population]/[Measures].[TotalPopulation]',
FORMAT_STRING = 'Percent'

Select {[Measures].[Population],
[Measures].[PctOfTotalPop]} on columns,
{DimZipCode.[12345]imZipCode.[54678]} on rows
from PopulationCube
Quote:

- Deepak

Deepak Puri
Microsoft MVP - SQL Server

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!


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.