kasper Posted January 27, 2010 Share Posted January 27, 2010 Hi,i want to create a line chart.x axis - timeline ( 24 hours)y axis - number of cells which contains the string "abc"I tried to declare a variable with java.lang.integer and calculation method sum...but anyhow it doesn't work...could you please help me? I am using a excel spreadsheet. three columns: yxz | date | timei want to count the cells of column 'time' when column yxz contains the string "abc" thank you very much in advance Link to comment Share on other sites More sharing options...
ckampshoff Posted January 28, 2010 Share Posted January 28, 2010 Hi kasper,try this for your variable expression: ($F{yxz}.contains("abc") ? $F{time} : null ). Set the calculation to "Count".HTHChristina. Link to comment Share on other sites More sharing options...
kasper Posted February 3, 2010 Author Share Posted February 3, 2010 thank you for your help... unfortunately...it still doenst work:( Code: Post Edited by kasper at 02/03/2010 16:12Post Edited by kasper at 02/03/2010 16:13 Link to comment Share on other sites More sharing options...
ckampshoff Posted February 4, 2010 Share Posted February 4, 2010 Hi kaspar,the code snippet I posted was for java. You use groovy in your report, right? I'm sorry but I don't know how the if-statement should look like to use it in groovy.RegardsChristina. 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