I have to create a grid like report. I already made a thread regarding doing this in a crosstab a few days earlier and got some great advice from the user 'lbass'.
However it did not come out exactly as planned and I tried creating a grid using running totals. I decided to post in a different thread since I am no longer attempting to use a crosstab for this. Here is a description of exactly what I want. This somewhat similar to a traceability matrix.
The infromation from the database looks like this.
table.name table.requirement table.status
ABC AST Y
ABC FAT N
ABC CPR Y
ABc CPS Y
XYZ AST N
XYZ CPR Y
XYZ TBS N
I have to make the report look like this.
ABC XYZ
AST Y N
CPR N Y
CPS Y
FAT N
TBS N
GHT
CTS
AXT
There are a total of 8 requirements. All 8 have to be displayed for each group.
I tried doing this with a cross tab but it only returned the relevent requirements and not
all of them, like this
ABC XYZ
AST Y N
CPR N Y
CPS Y
FAT N
TBS N
I have tried a different approach and tried to use running totals to create a grid.
I am able to get the names to line up the way I want. However I am having trouble getting the appropriate status fields. I think I am using formula wrong.
I have hard coded the names of the requirements since they are fixed.
The formula I have right now is -
if {table.name}=Rtotal0 and {table.requirement}='AST'
then
{table.status}
Where Rtotal0 is the running total for the first name.
I have done this for each requirement and each running total.
This works fine when there is only one name per group (i.e ABC),
but when the second name comes in (XYZ) something goes wrong and it does not display the {table.status} field for the first name anymore. It does however display it for the second name.
I have created the running totals as Nth smallest of the {table.name} field and specified N to be 1,2... for each case.
Can someone let me know what I am doing wrong here? Or any alternative approach to accomplish this?
Thank you
gkw
However it did not come out exactly as planned and I tried creating a grid using running totals. I decided to post in a different thread since I am no longer attempting to use a crosstab for this. Here is a description of exactly what I want. This somewhat similar to a traceability matrix.
The infromation from the database looks like this.
table.name table.requirement table.status
ABC AST Y
ABC FAT N
ABC CPR Y
ABc CPS Y
XYZ AST N
XYZ CPR Y
XYZ TBS N
I have to make the report look like this.
ABC XYZ
AST Y N
CPR N Y
CPS Y
FAT N
TBS N
GHT
CTS
AXT
There are a total of 8 requirements. All 8 have to be displayed for each group.
I tried doing this with a cross tab but it only returned the relevent requirements and not
all of them, like this
ABC XYZ
AST Y N
CPR N Y
CPS Y
FAT N
TBS N
I have tried a different approach and tried to use running totals to create a grid.
I am able to get the names to line up the way I want. However I am having trouble getting the appropriate status fields. I think I am using formula wrong.
I have hard coded the names of the requirements since they are fixed.
The formula I have right now is -
if {table.name}=Rtotal0 and {table.requirement}='AST'
then
{table.status}
Where Rtotal0 is the running total for the first name.
I have done this for each requirement and each running total.
This works fine when there is only one name per group (i.e ABC),
but when the second name comes in (XYZ) something goes wrong and it does not display the {table.status} field for the first name anymore. It does however display it for the second name.
I have created the running totals as Nth smallest of the {table.name} field and specified N to be 1,2... for each case.
Can someone let me know what I am doing wrong here? Or any alternative approach to accomplish this?
Thank you
gkw