erez.raveh Posted March 15, 2016 Share Posted March 15, 2016 Hi All,My problem is that I want to present month and it's value dynamic way according to input,for example:for this input1.From Date:2016-01-012.To Date:2016-03-01i'd like to get 3 columns:Jan feb mar10 20 30and for this input1.From Date:2016-01-012.To Date:2016-05-01i'd like to get 3 columns:Jan feb mar Apr May10 20 30 15 6 I manage to present static 3 month incolumn by set the "from date" as lower bound and increase months manuallycan it be done dynamicly for 1-12 months? Thanks,Erez Raveh Link to comment Share on other sites More sharing options...
hozawa Posted March 15, 2016 Share Posted March 15, 2016 Are you using cross tabs? Cross tab component allows dynamic columns. Link to comment Share on other sites More sharing options...
erez.raveh Posted March 15, 2016 Author Share Posted March 15, 2016 didnt manage to work with the cross tab because it request 3 paramters 1. column - the month2.rows - ?3. measures - my DocCount*every option i've tried didnt present the required*I'm using Jasper to present ElasticSearch results Link to comment Share on other sites More sharing options...
MiditecReportDev Posted March 15, 2016 Share Posted March 15, 2016 You could use a normal table with twelve columns and set one printWhen Expression to each column that only print the column when the month in question is in the given date range. Table column that are not printed do have a width of 0 so you won't have space issues either.Not the best solution (I think) but it definitely is one ;) Link to comment Share on other sites More sharing options...
reportdev Posted March 18, 2016 Share Posted March 18, 2016 check this post for jrxml.http://community.jaspersoft.com//questions/525633/removing-empty-space-between-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