dbTalk Databases Forums  

Calculating Average Duration using MDX

comp.databases.olap comp.databases.olap


Discuss Calculating Average Duration using MDX in the comp.databases.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
dan@gr.com
 
Posts: n/a

Default Calculating Average Duration using MDX - 09-18-2003 , 10:20 AM







We need to calculate the Average Duration inside an Analysis Services
cube with 5 dimensions. The Cube contains 1.6 million rows.



Calculating the Duration is very, very easy but we are having difficulty
counting the number records within the selected dimensions.



We have tried MDX Count and CountDistinct but that returns the count of
records in the entire cube and does not change with the Dimension
settings. Then we tried MDX CrossJoin and NonEmptyCrossJoin, I am not
sure this is what we want and the time it takes to return the results is
unacceptable.



Count(CrossJoin({[Measures].[Duration]}, [Claims].[Claim No].Members),
ExcludeEmpty)



Count(NonemptyCrossJoin({[Measures].[Duration]}, [Claims].[Claim No]
Members))



Any suggestions..



Thanks Dan Carlson


--
Posted via http://dbforums.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.