I have the following table that needs to be converted into a pivot both fields contain the same entries and a count of the entries need to be represented in a pivot table. The count of the entries has to done as groupings by entry types such as A or B.
Table
X Y
-----------
A B
A C
D B
B C
C C
D E
D B
F C
Pivot
A Or B C Or D E Or F
A Or B 1 2 0
C Or D 2 1 1
E Or F 0 1 0