I try to make a report per year where the year I specify every 4 years. In the report appearing already available year option to be reported. For example options 2013-2016, so in the report it displays data from 2013, 2014, 2015 and 2016. For more details I have the table like below :
+-----------------+--------------+-------------+-------------+
| id_jenis_perjal | jenis_perjal | id_tahun | tahun |
+-----------------+--------------+-------------+-------------+
| 7 | RPPJ | 1 | 2013 |
| 7 | RPPJ | 1 | 2013 |
| 7 | RPPJ | 2 | 2014 |
| 7 | RPPJ | 3 | 2015 |
| 7 | RPPJ | 4 | 2016 |
| 8 | Rambu | 1 | 2013 |
| 8 | Rambu | 2 | 2014 |
| 8 | Rambu | 2 | 2014 |
| 8 | Rambu | 3 | 2015 |
| 8 | Rambu | 4 | 2016 |
| 8 | Rambu | 4 | 2016 |
| 8 | Rambu | 4 | 2016 |
+-----------------+--------------+-------------+-------------+
But to display the report I have to modify the table to be like this
+-----------------+------+------+------+------+
| jenis_perjal | 2013 | 2014 | 2015 | 2016 |
+-----------------+------+------+------+------+
| RPPJ | 2 | 1 | 1 | 1 |
| Rambu | 1 | 2 | 1 | 3 |
+-----------------+------+------+------+------+