amadei Posted May 25, 2017 Share Posted May 25, 2017 I have this simple data table:YEARCAUSAL NAMEMONTHVALUE2017FIRST11002017SECOND12002017FIRST21502017SECOND25002016FIRST14002016SECOND13002016THIRTH11202016FIRST21002016SECOND3400I'm creating a report with a group by year. I want a cross tab for every year.In cross tab's columns I need the available months. In cross tab's rows I need the causal name. Somethings like this:YEAR: 2017CAUSAL NAMEGENFEBFIRST100150SECOND200500YEAR: 2016CAUSAL NAMEGENFEBMARFIRST4001000SECOND3000400THIRTH12000I put crosstab in GroupFooter and I have set the reset value of dataset to Group.I down know why but I get value "1" in every cell of crosstab. I've tried the simplest version of report with one year and one month. Every causal has a value so no "empty" cell has to be managed.Please, help me!Thanks! Link to comment Share on other sites More sharing options...
Solution H Mendoza Posted May 25, 2017 Solution Share Posted May 25, 2017 Hi there -Check the Calculation Type option for your Columns and Rows (which you see as you navigate the wizard). You'll likely have to start again, so you can set the correct function, SUM, COUNT, MIN, MAX, etc. Hugo Link to comment Share on other sites More sharing options...
amadei Posted May 26, 2017 Author Share Posted May 26, 2017 Hugo Mendoza's andwer guided me to solve the problem.I'm using Jaspersoft Studio. During Crosstab Wizard, when you select the field to put inside the cell, the default "aggregate function" is count. Changing the function during the wizard, rise a Null Pointer Exception so leave "count" as function. Now, edit the Crosstab and use "SUM" function for your measure. If you use "none" as function, the value will be printed correctly in the cell but TOTALS Cells doesn't work. So us SUM for your measure. 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