Bug 146967 Total fuction with result of the aggregate on group-Level should be enhanced
Description: Now if we want to do total fuction with the Aggregate result on the group level, it cant be fulfilled. For example, we set a total.sum() aggregate on a group level first, and then we sum the result of total.sum() again. The expected result should simply equal to sum over all rows. But the actual result is not as our requirement. I attached the design file as the example. Expected result: The aggregation on the group total should be enhanced, or we cant get expected result such as the requirement that total.rank() with the average result on the group level and so on.
data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/expression/MultiPassExpressionCompiler.java
private int passLevel = 0;
	
	private ArrayList aggrObjList = null;
	
	private List availableCmpList;
	
	private List caculatedAggregateList;
	private int currentGroupLevel, exprType;
	
	private AggregateTable table;
	private boolean hasAggregate = false;
	
	private boolean hasNesetedAggregate = false;
	private Scriptable scope;
	private ResultSetPopulator rsPopulator;
    private final String ROW_INDICATOR = "row";
    private final String TOTAL_OVERALL = "Total.OVERALL";
    
    
	
	private List currentGroupLevelList = new ArrayList( );
	private final static String AGGR_VALUE = "_temp_aggr_value";
	private boolean useRsMetaData = true;
	private BaseQuery baseQuery;
	
	/**
	 * ExpressionParseHelper to help user parse common expression.
	 * 
	 * @param metaData
	 */