dbTalk Databases Forums  

Count Records

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


Discuss Count Records in the microsoft.public.sqlserver.olap forum.



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

Default Count Records - 11-03-2003 , 12:14 PM






How do I count the current number of memebers. If I wanted
to count how many countires currently being displayed how
could I do that?

-mike

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

Default Re: Count Records - 11-03-2003 , 12:34 PM






You want to count the # members in the query result? This involves the AXIS
function. Is it a given which axis (columns, rows, ?) the members will
appear on?

tom @ the domain below
www.tomchester.net


"Mike Morse" <mike.morse (AT) micromo (DOT) com> wrote

Quote:
How do I count the current number of memebers. If I wanted
to count how many countires currently being displayed how
could I do that?

-mike



Reply With Quote
  #3  
Old   
mike.morse
 
Posts: n/a

Default Re: Count Records - 11-03-2003 , 01:09 PM



I may not be using the correct terminology but this seems
to be working

DistinctCount([Region].AllMembers)

So the farther down the region dim I go it is showing me
how many children there are at each level.

-mike


Quote:
-----Original Message-----
You want to count the # members in the query result? This
involves the AXIS
function. Is it a given which axis (columns, rows, ?) the
members will
appear on?

tom @ the domain below
www.tomchester.net


"Mike Morse" <mike.morse (AT) micromo (DOT) com> wrote in message
news:104201c3a22d$e902d1d0$a501280a (AT) phx (DOT) gbl...
How do I count the current number of memebers. If I
wanted
to count how many countires currently being displayed
how
could I do that?

-mike


.


Reply With Quote
  #4  
Old   
Michael Shao [MSFT]
 
Posts: n/a

Default Re: Count Records - 11-04-2003 , 12:29 AM



Hi Mike,

As I understand, it is hard to count how many countries currently being
displayed. We are only able to count how many countries being stored.

DistinctCount([Region].AllMembers) showed us the number of countries being
stored.

AllMembers returns a set containing all members of the specified dimension
or level, including calculated members.

DistinctCount returns the number of distinct, non-empty tuples in a set.

Did 'DistinctCount([Region].AllMembers)' meet your requirements. Please
feel free to post in the group if you would like further assistance.

Regards,

Michael Shao
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.


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.