pirrimaison1980 Posted June 6, 2013 Share Posted June 6, 2013 Hi all.I need add a custom COUNT measure row in a crosstab in order to remove from the count values lower than a given number.Can someone help me? Any link with documentation about it?Thanks in advance. Link to comment Share on other sites More sharing options...
sjoerd.jump Posted June 6, 2013 Share Posted June 6, 2013 (if $V{variable} <= 10) "" ? $F{variable}[/code]somethink like this? Link to comment Share on other sites More sharing options...
Thomas Zimmer Posted June 6, 2013 Share Posted June 6, 2013 Simply implement the increment(..) Method of the Incrementer interface and the net.sf.jasperreports.engine.fil.JRIncrementerFactory to get an instance of your incrementer. Compile, pack as jar, put into classpath and edit the "Incrementer Factory" of your crosstab measure. that will do it. Cheers, Thomas http://www.thomaszimmer.net Link to comment Share on other sites More sharing options...
pirrimaison1980 Posted June 7, 2013 Author Share Posted June 7, 2013 Thanks to both.I noticed that NULLs values are not counted by default, and just adding this Value expression to the COUNT measure properties, it seems to works fine.Integer.valueOf($F{Value}) <= Integer.valueOf(0) ? null : Integer.valueOf($F{Value})Thank yoy very much. Link to comment Share on other sites More sharing options...
Thomas Zimmer Posted June 7, 2013 Share Posted June 7, 2013 That was NOT your question ("... count values lower than a given number ..."). Like this, the answer was another one... ;-) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now