Jump to content
We've recently updated our Privacy Statement, available here ×

Dynamic columns


erez.raveh

Recommended Posts

Hi All,

My problem is that I want to present month and it's value dynamic way according to input,

for example:

for this input

1.From Date:2016-01-01

2.To Date:2016-03-01

i'd like to get 3 columns:

Jan           feb            mar

10            20              30


and for this input

1.From Date:2016-01-01

2.To Date:2016-05-01

i'd like to get 3 columns:

Jan           feb            mar              Apr              May

10            20              30                15                6

 
 
I manage to present static 3 month incolumn by set the "from date" as lower bound and increase months manually

can it be done dynamicly for 1-12 months?

 

Thanks,

Erez Raveh

Link to comment
Share on other sites

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...