dbTalk Databases Forums  

Created Calculated Member from Calculated Member

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


Discuss Created Calculated Member from Calculated Member in the microsoft.public.sqlserver.olap forum.



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

Default Created Calculated Member from Calculated Member - 05-12-2006 , 12:37 PM






I have a Measure that gives me a count of terminated emplyees and a
calculated member that gives me the average number of active employees at
each level. I would like to create a calculated member that gives me the
turnover percentage by dividing the termination count with the average number
of actives. This is what I created,
"[Measures].[Termcount]/[Measures].[AvgEmpCount]" but it gives me a blank
value at the bottom level and a value of 1 at each level above that. What am
I doing wrong?

Reply With Quote
  #2  
Old   
Darren Gosbell
 
Posts: n/a

Default Re: Created Calculated Member from Calculated Member - 05-12-2006 , 07:44 PM






The measure is using an integer format by default. So values below 0.5
will round down to 0 and display as blank, values of 0.5 and above will
round up to 1. The solution would be to either set a format string...

eg.

[Measures].[Termcount]/[Measures].[AvgEmpCount] ,FORMAT_STRING="0.00%"

.... or to multiply your measure by 100 ...

eg.

[Measures].[Termcount]/[Measures].[AvgEmpCount] * 100

It depends whether you want an integer amount or a "true" percentage.

--
Regards
Darren Gosbell [MCSD]
Blog: http://www.geekswithblogs.net/darrengosbell

In article <D3CBA34A-650E-4CF8-9C01-FCFEE49B1248 (AT) microsoft (DOT) com>,
BryanWheeler (AT) discussions (DOT) microsoft.com says...
Quote:
I have a Measure that gives me a count of terminated emplyees and a
calculated member that gives me the average number of active employees at
each level. I would like to create a calculated member that gives me the
turnover percentage by dividing the termination count with the average number
of actives. This is what I created,
"[Measures].[Termcount]/[Measures].[AvgEmpCount]" but it gives me a blank
value at the bottom level and a value of 1 at each level above that. What am
I doing wrong?


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.