Hello!
I have to create a report from a table's data:
| | entries |
| |year |wrkd|hrs|mark|mark|
|usr_id|month |days|day|A |B |buy |sales|
|------|------|----|---|----|----|-----|-----|
|DUMMY |200201|25 |7 |10 |5 |10000|20000|
|DUMMY |200202|20 |7 |5 |5 |5000 |15000|
|DUMMY |200203|1 |1 |7 |0 |0 |0 |
|DUMMY |200212|26 |8 |7 |3 |7000 |10000|
AND SO ON::::::
The report should look +- like this:
|--------|---|---|---|---|---|---|-------|
|Activity|Jan|Feb|Mar|:::|Dec|Ttl|Average|
|--------|---|---|---|---|---|---|-------|
|Productn|175|140|1 |0 |208|524|131.50 |
|========|===|===|===|===|===|===|=======|
|Entries |Jan|Feb|Mar|:::|Dec|Ttl|Average|
|--------|---|---|---|---|---|---|-------|
|Mark A |10 |5 |7 |0 |7 |29 |7.50 |
|Mark B |5 |5 |0 |0 |3 |13 |3.25 |
|--------|---|---|---|---|---|---|-------|
|Total |15 |10 |7 |0 |10 |42 |10.75 |
|========|===|===|===|===|===|===|=======|
AND SO ON::::::
The average is divided by 4 'cause there's only 4 months of inputed dada.
Thank you for your help,
Freddy