Package biz.smart.mdx.olap.model

Examples of biz.smart.mdx.olap.model.Hierarchy


   */
  public static MdxValueExpression getParentShareExpression(
      MdxQuery mdxQuery, String label, Axis shareMeasureOrientation)
  throws NoHierarchyToAnalyzeShare {
   
    Hierarchy analyzedHierarchy = mdxQuery.getHierarchyDeepest(shareMeasureOrientation.getSecondAxis());
   
    if(analyzedHierarchy==null)
      throw new NoHierarchyToAnalyzeShare(shareMeasureOrientation.getSecondAxis());
   
    List<Hierarchy> analyzedHierarchyList = new ArrayList<Hierarchy>();
    analyzedHierarchyList.add(analyzedHierarchy);
   
    MdxValueExpression secWithExpr =
      new MdxValueExpression("'( "+analyzedHierarchy.getCurrentMember()+"/"+analyzedHierarchy.getHierarchyAll()+")',FORMAT_STRING = \"Percent\"",
          mdxQuery.getMeasure().getMemberExpression(label).getDefinition(),
          analyzedHierarchyList);
   
    return secWithExpr;
  }
View Full Code Here

TOP

Related Classes of biz.smart.mdx.olap.model.Hierarchy

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.