dbTalk Databases Forums  

how to count?

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


Discuss how to count? in the microsoft.public.sqlserver.olap forum.



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

Default how to count? - 04-05-2004 , 08:02 AM






Hi,
In my mdx query how to count the rows of dimension
table..ie if i want the no. of rows for [Measures].[Unit
sales] in the last 3 days...like below:
'{Filter(newtime.Day.Members, NOT IsEmpty
((newtime.CurrentMember))).item(COUNT(sum(Filter
(newTime.Day.Members,NOT IsEmpty(
newtime.CurrentMember ))) - 3)}'

The abv query is retriving sum but i want the count
only...how to retriev???


Reply With Quote
  #2  
Old   
Tom Chester
 
Posts: n/a

Default Re: how to count? - 04-05-2004 , 10:32 AM






{myset}.Count

public @ the domain below
www.tomchester.net

"steven" <anonymous (AT) discussions (DOT) microsoft.com> wrote

Quote:
Hi,
In my mdx query how to count the rows of dimension
table..ie if i want the no. of rows for [Measures].[Unit
sales] in the last 3 days...like below:
'{Filter(newtime.Day.Members, NOT IsEmpty
((newtime.CurrentMember))).item(COUNT(sum(Filter
(newTime.Day.Members,NOT IsEmpty(
newtime.CurrentMember ))) - 3)}'

The abv query is retriving sum but i want the count
only...how to retriev???




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.