I am sure that someone is going to say there is a post on this and I should have searched, but I did.

I would like to be able to offer my data in comparison tables that run vertically rather than horizontally. So I currently use Views to display my data with items to be compared down the side and field labels across the top (if I could insert a table I would):
| height | Weight
john | 1.8m | 75kg
jenny | 1.65m | 59kg
jill | 1.63m | 80kg

(Jill needs some exercise!)

Is there a way to flip that and have:
| John | Jenny | Jill
Height | 1.8m | 1.65m | 1.63m
Weight | 75kg | 59kg | 80kg
(the names of all participants have been changed to protect their identity)

The thing is my data set does not work well horizontally as there are many fields per item. Could someone point me in the right direction?

Thanks

Comments

duncan.moo’s picture

So there is a thread http://drupal.org/node/174578 giving instructions on how to transpose a table's data "switch rows and columns" by creating a new views template. It looks like this would work, but I really thought there would be some way that Views 2 could do this to any tabulated data.

smaier’s picture