Bug 211849 [Regression]Grandtotal's results is incorrect
Description: The Grandtotal's result is incorrect in report which is created in v20071204-0800 build, first I think it is data's bug. But the same report created in former build and preview in this build, the result is correct. So may be the crosstab created in today's build is incorrect. Build number: 2.3.0.v20071204-0800 Steps to reproduce: 1, New a crosstab with row and column dimensions 2, Define grandtotals on both row and column dimension 3, Preview Expected result: The grandtotal's result should be correct Actual result: The grandtotal's result is incorrect Error log:
data/org.eclipse.birt.data.tests/test/org/eclipse/birt/data/engine/olap/cursor/CubeUtility.java
ICubeQueryDefinition createQueryDefinition( )
	{
		ICubeQueryDefinition cqd = new CubeQueryDefinition( cubeName );
		cqd.createMeasure( "measure1" );
		IEdgeDefinition rowEdge = cqd.createEdge( ICubeQueryDefinition.ROW_EDGE );
		IDimensionDefinition productLineDim1 = rowEdge.createDimension( "dimension5" );
		IHierarchyDefinition porductLineHie1 = productLineDim1.createHierarchy( "dimension5" );
		ILevelDefinition columnLevel1 = porductLineHie1.createLevel( "level21" );
		IDimensionDefinition productLineDim2 = rowEdge.createDimension( "dimension6" );
		IHierarchyDefinition porductLineHie2 = productLineDim2.createHierarchy( "dimension6" );
		ILevelDefinition columnLevel2 = porductLineHie2.createLevel( "level22" );
		IEdgeDefinition columnEdge = cqd.createEdge( ICubeQueryDefinition.COLUMN_EDGE );
		IDimensionDefinition geographyDim1 = columnEdge.createDimension( "dimension1" );
		IHierarchyDefinition geographyHier1 = geographyDim1.createHierarchy( "dimension1" );
		geographyHier1.createLevel( "level11" );
		IDimensionDefinition geographyDim2 = columnEdge.createDimension( "dimension2" );
		IHierarchyDefinition geographyHier2 = geographyDim2.createHierarchy( "dimension2" );
		geographyHier2.createLevel( "level12" );
		IDimensionDefinition geographyDim3 = columnEdge.createDimension( "dimension3" );
		IHierarchyDefinition geographyHier3 = geographyDim3.createHierarchy( "dimension3" );
		ILevelDefinition startLevel = geographyHier3.createLevel( "level13" );
		IDimensionDefinition geographyDim4 = columnEdge.createDimension( "dimension4" );
		IHierarchyDefinition geographyHier4 = geographyDim4.createHierarchy( "dimension4" );
		geographyHier4.createLevel( "level14" );
		return cqd;
	}
	
	ICubeQueryDefinition createMirroredQueryDefinition( )
	{
		ICubeQueryDefinition cqd = new CubeQueryDefinition( cubeName );