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
IBinding binding1 = new Binding( "edge1level1");
		
		binding1.setExpression( new ScriptExpression("dimension[\"dimension1\"][\"level11\"]") );
		cqd.addBinding( binding1 );
		
		IBinding binding2 = new Binding( "edge1level2");
		
		binding2.setExpression( new ScriptExpression("dimension[\"dimension1\"][\"level12\"]") );
		cqd.addBinding( binding2 );
		
		IBinding binding4 = new Binding( "edge2level1");
		
		binding4.setExpression( new ScriptExpression("dimension[\"dimension2\"][\"level21\"]") );
		cqd.addBinding( binding4 );
		
		IBinding binding5 = new Binding( "measure1" );
		binding5.setExpression( new ScriptExpression("measure[\"measure1\"]") );
		cqd.addBinding( binding5 );
		
		IBinding binding6 = new Binding( "rowGrandTotal");
		binding6.setExpression( new ScriptExpression("measure[\"measure1\"]") );
		binding6.setAggrFunction( IBuildInAggregation.TOTAL_SUM_FUNC );
		binding6.addAggregateOn( "dimension[\"dimension2\"][\"level21\"]" );
		cqd.addBinding( binding6 );
		
		IBinding binding7 = new Binding( "columnGrandTotal");
		binding7.setExpression( new ScriptExpression("measure[\"measure1\"]") );
		binding7.setAggrFunction( IBuildInAggregation.TOTAL_SUM_FUNC );
		binding7.addAggregateOn( "dimension[\"dimension1\"][\"level11\"]" );
		binding7.addAggregateOn( "dimension[\"dimension1\"][\"level12\"]" );