dbTalk Databases Forums  

count problem

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


Discuss count problem in the microsoft.public.sqlserver.olap forum.



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

Default count problem - 07-22-2005 , 03:51 AM






please help me..
i need to get the count of week.currentmember having > 0 value
i need this for my denominator in the mdx below:

SUM(week.CurrentMember.Children)/Count(week.CurrentMember.Children,EXCLUDEEMPTY)


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

Default Re: count problem - 07-22-2005 , 08:22 PM






Assuming the > 0 value is for the current measure:

Count(Filter(Week.CurrentMember.Children,
[Measures].CurrentMember > 0))


- Deepak

Deepak Puri
Microsoft MVP - SQL Server

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

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

Default Re: count problem - 07-28-2005 , 02:26 AM



thanks deepak!

"Deepak Puri" wrote:

Quote:
Assuming the > 0 value is for the current measure:

Count(Filter(Week.CurrentMember.Children,
[Measures].CurrentMember > 0))


- Deepak

Deepak Puri
Microsoft MVP - SQL Server

*** Sent via Developersdex http://www.developersdex.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.