Column for each day of any month

0

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 month 3 days ago

1 Answer:

1

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:

https://community.jaspersoft.com/questions/541652/example-calculating-holidays-vs-business-days-date-range-not-question

hth + regards

C-Box

C-Box's picture
2157
Joined: Jul 19 2006 - 5:58pm
Last seen: 12 hours 28 min ago
Feedback
randomness