Bug 190419 The topn filter doesn't take effect on the datetime type dimension[1102]
Description: The topn filter doesn't take effect on the datetime type dimension[1102] Build number: 2.2.0.v20070601-1347 Steps to reproduce: 1, New a crosstab which includes datetime type dimension 2, Specify a filter on the year level using two filter condition data["year"] topn 2 or dimension["Date"]["year"] topn 2 3, Preview Expected result: Both filter condition can take effect Actual result: No effect only 2005 year in crosstab
data/org.eclipse.birt.data.tests/test/org/eclipse/birt/data/engine/olap/api/CubeFeaturesTest.java
binding7.addAggregateOn( "dimension[\"dimension1\"][\"level11\"]" );
		binding7.addAggregateOn( "dimension[\"dimension1\"][\"level12\"]" );
		cqd.addBinding( binding7 );
		
		IBinding binding8 = new Binding( "grandTotal");
		binding8.setExpression( new ScriptExpression("measure[\"measure1\"]") );
		binding8.setAggrFunction( IBuildInAggregation.TOTAL_SUM_FUNC );
		cqd.addBinding( binding8 );
		
		IBinding binding9 = new Binding( "row_rowGrandTotal");
		binding9.setExpression( new ScriptExpression("data[\"rowGrandTotal\"]*10") );
		cqd.addBinding( binding9 );
		
		IBinding binding10 = new Binding( "row_columnGrandTotal");
		binding10.setExpression( new ScriptExpression("data[\"columnGrandTotal\"]*10") );
		cqd.addBinding( binding10 );
		
		IBinding binding11 = new Binding( "row_grandTotal");
		binding11.setExpression( new ScriptExpression("data[\"grandTotal\"]*10") );
		cqd.addBinding( binding11 );
	
		IBinding binding12 = new Binding( "row_measure1" );
		binding12.setExpression( new ScriptExpression("data[\"measure1\"]*10") );
		cqd.addBinding( binding12 );
				
		
		CubeSortDefinition sorter1 = new CubeSortDefinition();
		sorter1.setExpression( "dimension[\"dimension2\"][\"level21\"]" );
		sorter1.setSortDirection( ISortDefinition.SORT_DESC );
		sorter1.setTargetLevel( level21 );