Column for each day of any month

Hello friends, 

I am new, I program with php and I want to build my reports with Jasper Studio.

I need to create a table with the days of months as the example image, for any month of the year.

One column for each day of the month from monday to friday. Starting with the day when the month start. For example the first day in august 2019 is thursday.


how can I do this?

Day of months


Thanks for your help.

heavensinformatica's picture
Joined: Aug 12 2019 - 4:38pm
Last seen: 1 year 4 months ago

1 Answer:

I you could use a crosstab .... then the crosstab component  will create a column per day automatically (but when I remember right, just if you have also a record for each day in your result set), if your query does not  return a record for each day you could try to create a CTE table like described here:

hth + regards


C-Box's picture
Joined: Jul 19 2006 - 5:58pm
Last seen: 6 months 6 days ago