I have a data table with records in which there is a repeating field "position". Imagine a rotating table with four positions with numbers from 1 to 4 on. I store 4 rows of the database table for each rotation, and each row contains a rotation position from 1 to 4 on, so this position field is 1,2,3,4,1,2,3,4,1,2, etc. d. Example to be:
Position Field1 Field2 Field3 ------------------------------ 1 4.5 4.6 1.4 2 5.5 3.6 2.4 3 4.5 7.6 3.4 4 7.5 2.6 4.4 1 2.5 3.6 5.4 2 3.5 9.6 6.4 3 9.5 3.6 7.4 4 1.5 6.6 8.4 1 2.5 9.6 9.4
I would like to display a grid (or create a table) that has a position field 1,2,3,4 at the top (columns) and each of my other source data fields (which were columns) are now like rows. In the above example, this would be:
1 2 3 4 ------------------------------ Field1 2.5 3.5 9.5 1.5 Field2 9.6 9.6 3.6 6.6 Field3 9.4 6.4 7.4 8.4
I need only the last 4 data records to be displayed, and I think this is a kind of pivot? I have an Express Express' Quantum Grid, so I can easily add my consolidated set if necessary. My requirement is that it should be very fast and display only the last 4 positions, not the amounts or other aggregates. Can I encode this fast? Is this something a reporting tool can do? Or should I use a consolidated set solution?
source share