[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

How to put measures in olap4j api ?

Posted on 2015-02-18
1
Medium Priority
?
132 Views
Last Modified: 2015-02-19
I am using mondrian server and olap4j api.
How to I put measures in olap4j api ?
In olap4j Measures are treated as Dimensions, but how do I include them in query ?

QueryDimension dimn1=query.getDimension(getDim1());
	QueryDimension dimn2=query.getDimension(getDim2());
	QueryDimension dimn3=query.getDimension(getDim3());
	       //QueryDimension measure1=query.getDimension(getMeasure());
	

	query.getAxis(Axis.COLUMNS).addDimension(dimn1);
	query.getAxis(Axis.ROWS).addDimension(dimn2);    
	query.getAxis(Axis.COLUMNS).addDimension(dimn3); 

Open in new window

0
Comment
Question by:Pradip Shenolkar
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 

Accepted Solution

by:
Pradip Shenolkar earned 0 total points
ID: 40618621
I found the solution :
Its working

Query query=new Query("query1",cube1);
QueryDimension measure1=query.getDimension("Measures");
	measure1.include(IdentifierNode.ofNames("Measures",measureName).getSegmentList());
query.getAxis(Axis.FILTER).addDimension(measure1);										
	

Open in new window

0

Featured Post

Learn Veeam advantages over legacy backup

Every day, more and more legacy backup customers switch to Veeam. Technologies designed for the client-server era cannot restore any IT service running in the hybrid cloud within seconds. Learn top Veeam advantages over legacy backup and get Veeam for the price of your renewal

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Confronted with some SQL you don't know can be a daunting task. It can be even more daunting if that SQL carries some of the old secret codes used in the Ye Olde query syntax, such as: (+)     as used in Oracle;     *=     =*    as used in Sybase …
One of the most important things in an application is the query performance. This article intends to give you good tips to improve the performance of your queries.
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…

650 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question