Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
DB Engine
SQL ServerMSDESQL Server CE
Services
Analysis (Data Mining)Analysis (OLAP)DTSIntegration ServicesNotification ServicesReporting Services
Programming
CLRConnectivitySQLXML
Other Technologies
ClusteringEnglish QueryFull-Text SearchReplicationService Broker
General
Data WarehousingPerformanceSecuritySetupSQL Server ToolsOther SQL Server Topics
DirectoryUser Groups
Related Topics
MS AccessOther DB ProductsMS Server Products.NET DevelopmentVB DevelopmentJava DevelopmentMore Topics ...

SQL Server Forum / General / Data Warehousing / March 2005

Tip: Looking for answers? Try searching our database.

Help with measure aggregation functions

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
MPS - 30 Mar 2005 14:38 GMT
Hi, I will rewrite my question.

I'm having trouble to show averages of a measure in a cube, where the normal
aggregation function for a measure is SUM.

I see no AVG aggregation function for measures (I see Min, Max, Count,
Distinct Count and SUM).

If I hide the measure (cost), and create a calculated member based on that
measure, ie Avg(cost), I have te problem of how to average it, since the
cube has two dimensions in the row axis, like:

               Time
---------------------------------------
Product            |
       Customer  |      avg of cost

If I use avg(nonemptycrossjoin(product.currentmember.children,
customer.currentmember.children), measures.cost) I get the same average for
every cell in the cube, what's not corrrect...

Sorry to bother you all, but this thing is becoming a nightmare.

Hope you can help

Michael Prendergast
OLAPMonkey - 30 Mar 2005 18:11 GMT
Averages are usually handled by summing and counting...and then
dividing the sub by the count in a calculated member.

> Hi, I will rewrite my question.
>
[quoted text clipped - 22 lines]
>
> Michael Prendergast
MPS - 30 Mar 2005 21:08 GMT
Sometimes, getting back to basics gets the job done :)

Thank yo very much,  problem solved

Michael

> Averages are usually handled by summing and counting...and then
> dividing the sub by the count in a calculated member.
[quoted text clipped - 30 lines]
>>
>> Michael Prendergast
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.