StudioUser_100 Posted February 14, 2015 Share Posted February 14, 2015 I have a table in my db with three columns country, weight and cost. I cannot edit my table neither add another table. I add my data in jasper studio and i set the following as a data query:SELECT COUNTRY, SUM(WEIGHT) AS WEIGHT, SUM(COST) AS COST FROM MY_TABLE, GROUP BY COUNTRY;I want to create a crosstab with the countries as column header and weight, cost as rows. How can i achieve this? Country 1Country 2Weight100123.2212123.2Costs111.213123123.1 Link to comment Share on other sites More sharing options...
vitaace Posted February 25, 2015 Share Posted February 25, 2015 Hi, you can refer my suggestions on below page. Thanks ;) http://community.jaspersoft.com/questions/847911/crosstab-report-multiple-row-columns 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