CR 10
Cross-tab placed in Report Header.
I have been trying to get the following data set into a cross-tab for display. The table structure is a follows.
Month Drug Dental Vision Fees Total
----- ---- ------ ------ ---- -----
09-2006 100.00 110.00 120.00 60.00 390.00
10-2006 110.00 120.00 130.00 60.00 420.00
...
I need to get the data to look like this (with YTD totals added on the right).
09-2006 10-2006 ... YTD
-----------------------------------------
Drug |100.00 110.00
Dental |110.00 120.00
Vision |120.00 130.00
Fees | 60.00 60.00
-----------------------------------------
Total |390.00 420.00
So far I have been unsuccessful. I can get the months in the columns and the other fields in the rows. However the grouping must be wrong because I get something similar to this.
09-2006 10-2006 ...
-----------------------------------------
Drug |100.00 0.00
|110.00 0.00
|120.00 0.00
| 60.00 0.00
-----------------------------------------
Dental |100.00 0.00
|110.00 0.00
|120.00 0.00
| 60.00 0.00
-----------------------------------------
Vision |100.00 0.00
|110.00 0.00
|120.00 0.00
| 60.00 0.00
-----------------------------------------
Fees |100.00 0.00
|110.00 0.00
|120.00 0.00
| 60.00 0.00
-----------------------------------------
Drug |0.00 110.00
|0.00 120.00
|0.00 130.00
|0.00 60.00
-----------------------------------------
Dental |0.00 110.00
|0.00 120.00
|0.00 130.00
|0.00 60.00
-----------------------------------------
...
Can anyone see what I am doing wrong? Can you point me in the right direction?
zemp
Cross-tab placed in Report Header.
I have been trying to get the following data set into a cross-tab for display. The table structure is a follows.
Month Drug Dental Vision Fees Total
----- ---- ------ ------ ---- -----
09-2006 100.00 110.00 120.00 60.00 390.00
10-2006 110.00 120.00 130.00 60.00 420.00
...
I need to get the data to look like this (with YTD totals added on the right).
09-2006 10-2006 ... YTD
-----------------------------------------
Drug |100.00 110.00
Dental |110.00 120.00
Vision |120.00 130.00
Fees | 60.00 60.00
-----------------------------------------
Total |390.00 420.00
So far I have been unsuccessful. I can get the months in the columns and the other fields in the rows. However the grouping must be wrong because I get something similar to this.
09-2006 10-2006 ...
-----------------------------------------
Drug |100.00 0.00
|110.00 0.00
|120.00 0.00
| 60.00 0.00
-----------------------------------------
Dental |100.00 0.00
|110.00 0.00
|120.00 0.00
| 60.00 0.00
-----------------------------------------
Vision |100.00 0.00
|110.00 0.00
|120.00 0.00
| 60.00 0.00
-----------------------------------------
Fees |100.00 0.00
|110.00 0.00
|120.00 0.00
| 60.00 0.00
-----------------------------------------
Drug |0.00 110.00
|0.00 120.00
|0.00 130.00
|0.00 60.00
-----------------------------------------
Dental |0.00 110.00
|0.00 120.00
|0.00 130.00
|0.00 60.00
-----------------------------------------
...
Can anyone see what I am doing wrong? Can you point me in the right direction?
zemp