Hi Everyone,
I have a really sticky problem with a cross tab query that I am developing for a welding department.
I want to split the column Heading into two "sub columns" depending on the value Column having a certain criteria.
Let me explain: I have a CT query with the follwong row headings:
a) WeldNo
b) DateWelded
c) Welder
The Column Heading is: TestType ( this is becasue there are are up to five different tests that can be done on a weld)
The Column Values is: TestNO, ( Total = FIRST)
So for each weld, welder and WeldDate, the CT is supposed to show the type of test done and the TestNo of the test.
The CT looks like this:
WeldNo WeldDate WelderID TestX TestY Test X
---------------------------------------------------
Weld1 12-06-02 James X12 Z10
Weld2 13-06-02 Mark X16 Y24
Weld2 13-06-02 James X16 Y24
Weld3 15-06-02 Steve X20 Y25 Z13
I hope you get the meaning.( Note that the same weld could be welded by two persons eg weld2 was welded by Both James AND Mark)
BUT I WANT TO SHOW THE RESULT AS A SUBGROUPING OF THE TESTTYPE COLUMN HEADING. Eg, If James failed the TestY on Weld2 , I want the TestY column to look something like this:
WedlNo /WeldDate / WelderID / TestX / TestY / Test X/
----------- / / / /Pass/Fail
-----------------------------------------------------
Weld1 12-06-02 James X12 Z10
Weld2 13-06-02 Mark X16 Y24
Weld2 13-06-02 James X16 Y24
Weld3 15-06-02 Steve X20 Y25 Z13
So , in effect the Columm heading would have another subgrouping For Pass/Fail.
I hope this makes sense to every one and I that someone can help, i have been working on this for the past couple of weeks and I am really frustrated.I can get the standard CT querry but have not been successful in getting the column heading to have a sub grouping.
Regards,
ZaZa
I have a really sticky problem with a cross tab query that I am developing for a welding department.
I want to split the column Heading into two "sub columns" depending on the value Column having a certain criteria.
Let me explain: I have a CT query with the follwong row headings:
a) WeldNo
b) DateWelded
c) Welder
The Column Heading is: TestType ( this is becasue there are are up to five different tests that can be done on a weld)
The Column Values is: TestNO, ( Total = FIRST)
So for each weld, welder and WeldDate, the CT is supposed to show the type of test done and the TestNo of the test.
The CT looks like this:
WeldNo WeldDate WelderID TestX TestY Test X
---------------------------------------------------
Weld1 12-06-02 James X12 Z10
Weld2 13-06-02 Mark X16 Y24
Weld2 13-06-02 James X16 Y24
Weld3 15-06-02 Steve X20 Y25 Z13
I hope you get the meaning.( Note that the same weld could be welded by two persons eg weld2 was welded by Both James AND Mark)
BUT I WANT TO SHOW THE RESULT AS A SUBGROUPING OF THE TESTTYPE COLUMN HEADING. Eg, If James failed the TestY on Weld2 , I want the TestY column to look something like this:
WedlNo /WeldDate / WelderID / TestX / TestY / Test X/
----------- / / / /Pass/Fail
-----------------------------------------------------
Weld1 12-06-02 James X12 Z10
Weld2 13-06-02 Mark X16 Y24
Weld2 13-06-02 James X16 Y24
Weld3 15-06-02 Steve X20 Y25 Z13
So , in effect the Columm heading would have another subgrouping For Pass/Fail.
I hope this makes sense to every one and I that someone can help, i have been working on this for the past couple of weeks and I am really frustrated.I can get the standard CT querry but have not been successful in getting the column heading to have a sub grouping.
Regards,
ZaZa