Bug 214196 [Automation][Compatibility]Exception occurs when preview a old crosstab with measure sorting
data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/olap/query/view/CubeQueryDefinitionUtil.java
MeasureDefinition measureDefn = (MeasureDefinition) measureIter.next( );
				String innerName = OlapExpressionUtil.createMeasureCalculateMemeberName( measureDefn.getName( ) );
				measureMapping.put( measureDefn.getName( ), innerName );
				
				
				
				calculatedMember[index] = new CalculatedMember( innerName,
						measureDefn.getName( ),
						measureAggrOns,
						adaptAggrFunction( measureDefn ),
						0 );
				calculatedMemberList.add( calculatedMember[index] );
				index++;
			}
		}
		
		if ( !cubeAggrBindingList.isEmpty( ) )
		{
			int rsID = index > 0 ? 1 : 0;
			for ( int i = 0; i < cubeAggrBindingList.size( ); i++ )
			{
				int id = getResultSetIndex( calculatedMemberList,
						( (ICubeAggrDefn) cubeAggrBindingList.get( i ) ).getAggrLevels( ) );
				if ( id == -1 )
				{
					calculatedMember[index] = new CalculatedMember( (ICubeAggrDefn) cubeAggrBindingList.get( i ),
							rsID );
					calculatedMemberList.add( calculatedMember[index] );
					rsID++;
				}