title: Getting data from mondrian.olap.Result
body: <p>I want to store the values of result set in a variable. Please someone help me.
  Here is my code.</p>
  
  <pre><code>mondrian.rolap.RolapConnection connection=(RolapConnection) 
  RGHelper.getMDXConnection();
  Query query = connection.parseQuery(topNUtilisedRG);
  
  @SuppressWarnings("deprecation")
  Result result = connection.execute(query); 
  </code></pre>
  
  <p>i tried to get the result using </p>
  
  <pre><code>final Cell cell = result.getCell( new int[]{0,0} );
  </code></pre>
  
  <p>I am using eclipse debugging and I found that all records which I need are present in "cell" variable. But I don't know how to fetch data.</p>
  
  <p><em>In this Image I mentioned Values which I want save in some variable:</em>
  <img src="https://i.stack.imgur.com/xGHe0.png" alt="In this Image I mentioned Values which I want save in some variable"></p>
  
  <p><a href="http://www.programcreek.com/java-api-examples/index.php?api=mondrian.olap.Cell" rel="nofollow noreferrer">I have gone through this site, but I didn't get the right solution <strong>strong text</strong> </a></p>