not sure if you just wantthe result in a chart or if you are looking for an actaul table with three Facts A, B and C.
The attached qvw shows how to achieve both.
the chart solution can be built straight out of what you already have.
The table solution requires some more code in the script.
Transform.qvw 117.1 K