Bug 180405 The grand total's result is incorrect[1102]
Description: The grand total's result is incorrect[1102] Build number: 2.2.0.v20070402-0630 Steps to reproduce: 1, Using the attached design file 2, Preview the results and check the grand total of QUANTITY_PRODUCT Expected result: 42, 7, 13, 5 Actual result: Only calculate the latest row of QUANTITY Error log:
data/org.eclipse.birt.report.data.adapter/src/org/eclipse/birt/report/data/adapter/impl/DataSetIterator.java
* @param session
	 * @param hierHandle
	 * @throws BirtException
	 */
	public DataSetIterator( DataRequestSession session,
			TabularHierarchyHandle hierHandle, String timeLevelName, String leafLevelName ) throws BirtException
	{
		QueryDefinition query = new QueryDefinition( );
		query.setUsesDetails( true );
		
		query.setDataSetName( hierHandle.getDataSet( ).getQualifiedName( ) );
		List metaList = new ArrayList();
		this.prepareLevels( query,
				hierHandle, metaList, timeLevelName, leafLevelName );
		this.it = session.prepare( query ).execute( null ).getResultIterator( );
		this.metadata = new ResultMeta( metaList );
	}
	/**
	 * Create DataSetIterator for fact table.
	 * 
	 * @param session
	 * @param cubeHandle
	 * @throws BirtException
	 */
	public DataSetIterator( DataRequestSession session,
			TabularCubeHandle cubeHandle, Map extraTimeLevelHolder ) throws BirtException
	{
		QueryDefinition query = new QueryDefinition( );
		query.setUsesDetails( true );
		query.setDataSetName( cubeHandle.getDataSet( ).getQualifiedName( ) );