dbTalk Databases Forums  

# of cells returned from an MDX statement

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


Discuss # of cells returned from an MDX statement in the microsoft.public.sqlserver.olap forum.



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

Default # of cells returned from an MDX statement - 08-12-2005 , 12:04 PM






Hi,

I am using ADOMD cellset object to go through the result set of an MDX
Statement and build an XML file.

My question is, is there an easy way to find out the number of cells
returned by the MDX staetement and also the number of non-empty cells.

I thought the cellset object would have a property defined to do this but
did not find it. Any sample code is appreciated.

Thx,

Sam.

Reply With Quote
  #2  
Old   
Elad
 
Posts: n/a

Default Re: # of cells returned from an MDX statement - 08-14-2005 , 05:38 AM






Number of cells = (Number of tuples on Rows) x (Number of tuples on
Columns).

int cellcount = Cellset.Axes(0).Positions.Count *
Cellset.Axes(1).Positions.Count

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

Quote:
Hi,

I am using ADOMD cellset object to go through the result set of an MDX
Statement and build an XML file.

My question is, is there an easy way to find out the number of cells
returned by the MDX staetement and also the number of non-empty cells.

I thought the cellset object would have a property defined to do this but
did not find it. Any sample code is appreciated.

Thx,

Sam.



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.