dbTalk Databases Forums  

Displaying Average of All members along side of Average of Each member

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


Discuss Displaying Average of All members along side of Average of Each member in the microsoft.public.sqlserver.olap forum.



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

Default Displaying Average of All members along side of Average of Each member - 02-22-2006 , 10:30 AM






The problem.

We are trying to present the average number of days it takes for
projects within a project grouping to go from one milestone to another
(advertising to notice-to-proceed).

Because there are different ProjectGroupings across the organization,
the Project Type dimension looks like this

Project Grouping
Project Group
Project Type.

The tricky part seems to be showing the average of All Projects with
the project grouping, and displaying that along side the project group
averages. This chart shows these measures by year.

For Example for each year it would show the average for Group 1, Group
2, Group 3 as well as average of All Projects Across those groups.

Using the calculated member, I seem to be able to calculate the Average
of all using the following MDX.

Sum([Proj Type Govs Rpt].[Project Grouping].AllMembers,[Measures].[Days
AD to NTP])/Sum([Proj Type Govs Rpt].[Project Grouping].AllMembers,
[Measures].[Proj Count])

However, the value dislays as another measure with values for all
members within each year.
So even though the value is the same, it dislays as many times as there
are project groups.

I attempted to display it after the last or a specific member, but
couldn't get the IIF to work.

any help would be appreciated.

Thanks

WalterC


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

Default Re: Displaying Average of All members along side of Average of Each member - 02-22-2006 , 10:53 PM






Does the fact table contain a row for each project; and is
[Measures].[Proj Count] is a cube 'count' measure and
[Measures].[Days AD to NTP] a 'sum' measure? In that case, the average
can be defined as: [Measures].[Days
AD to NTP]/[Measures].[Proj Count]; and you can chart the averages for
sibling groups vs. for their parent grouping.


- Deepak

Deepak Puri
Microsoft MVP - SQL Server

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

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

Default Re: Displaying Average of All members along side of Average of Each member - 02-28-2006 , 10:44 AM



That is how i get the average for each product groups (siblings). How
do I calc the average for All Siblings and display in same chart with
Siblings?

Thanks for your help.


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.