This Essbase discussion board is provided as a free service and dedicated to all the Essbase professionals out there!
  << Previous Topic | Next Topic >>Return to Index  

IEssOpMdxQuery.setDataless()

August 7 2012 at 1:16 PM
No score for this post
 
from IP address 76.126.160.225

Anyone have experience with IEssOpMdxQuery.setDataless() in the JAPI? It appears to not be as dataless as I would expect. Specifically in the case of an ASO cube.

 
Scoring disabled. You must be logged in to score posts.Respond to this message   
AuthorReply


76.126.160.225

options to prevent data access

No score for this post
August 10 2012, 6:41 PM 

In the meantime, if you need to suppress data retrievals, setting one axis to an empty set

SELECT { [Full Year].Children } ON COLUMNS, { } ON ROWS FROM your.cube

or forcing data to 0 with a custom calc

WITH MEMBER Measures.NoData AS '0' SELECT { [Full Year].Children } ON COLUMNS FROM your.cube WHERE (Measures.NoData)

seem your best, and most SSAS-like, options.

 
Scoring disabled. You must be logged in to score posts.Respond to this message   


71.228.176.74

Re: IEssOpMdxQuery.setDataless()

No score for this post
August 11 2012, 9:03 AM 


Hi Zoltan,

On my 11.1.2.1.102 laptop, I get no data cells when setDataless() is set to true:


String mdx = "SELECT {actual} ON COLUMNS, \n" +
"NON EMPTY CrossJoin(Colas.CHILDREN, West.Children) DIMENSION PROPERTIES Market.GEN_NUMBER, [Product].[GEN_NUMBER], [Product].[LEVEL_NUMBER], PRODUCT.MEMBER_ALIAS, [Product].[Comments] on ROWS FROM SAMPLE.BASIC";

IEssCubeView cv = cube.openCubeView("default");

IEssOpMdxQuery op = cv.createIEssOpMdxQuery();

op.setQuery(false, false, mdx, true, IEssOpMdxQuery.EEssMemberIdentifierType.NAME);

op.setXMLAMode(false);

op.setDataless(true);

cv.performOperation(op);

IEssMdDataSet mddata = cv.getMdDataSet();

System.out.println(mddata.getCellCount()); // prints 0


Are you seeing a version-specific thing?

Tim

Tim Tow
Oracle ACE Director
Applied OLAP, Inc

 
Scoring disabled. You must be logged in to score posts.Respond to this message   


76.126.160.225

data cells

No score for this post
August 13 2012, 5:15 PM 

>>Are you seeing a version-specific thing?

What I'm seeing is that at a customer site, with an ASO Cube, the script

SELECT { Descendants( [Year] ) } ON COLUMNS FROM ASOCube.ASOCube

Essbase throws an error for MAXFORMULACACHESIZE which is presumably legitimate but seems to imply Essbase is going to attempt to calculate something even if Essbase isn't going to stream back the results. Specifying an empty row set (e.g. { } on rows) or a calculated value (e.g. WITH MEMBER) seems to bypass the error.

It seems like Dataless(true) isn't returning data, which is nice for network transmission times, but I'd think it would suppress calculating it as well (like a Navigate w/o Data operation).

 
Scoring disabled. You must be logged in to score posts.Respond to this message   
Current Topic - IEssOpMdxQuery.setDataless()
  << Previous Topic | Next Topic >>Return to Index  

RSS feed for this forum - http://www.network54.com/Forum/58296?xml=rss. Please email hypess (at) gmail.com, if you have any questions/feedback/issues.