This is a migrated thread and some comments may be shown as answers.

Data Layout

3 Answers 70 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Mike
Top achievements
Rank 1
Mike asked on 18 Jul 2012, 03:26 PM
I have a table with the following data
CODE  |  VALUE
-----------------------
100      | MIKE
100      | JOHN
200      | MIKE
200      | JOHN
200      | FRED

I'd like to be able to show the data in the following form:
CODE | VALUE1 | VALUE2| VALUE3
---------------------------------------------
100     | MIKE      | JOHN    |
200     | MIKE      | JOHN    | FRED

I thought this was what a cross tab could be used for but think I'm mistaken. Does anybody know how I could achieve this?


3 Answers, 1 is accepted

Sort by
0
Hadib Ahmabi
Top achievements
Rank 1
answered on 20 Jul 2012, 02:41 PM
You can do that with nested tables. The outer will iterate through the values and the inner will show all the names for the current value. 
0
Mike
Top achievements
Rank 1
answered on 20 Jul 2012, 02:52 PM
How would I get the values to fill horizontally rather than vertically as shown in my example?
0
Hadib Ahmabi
Top achievements
Rank 1
answered on 25 Jul 2012, 08:00 AM
Click on the inner table in the designer and select Rotate Layout - this will make the table go horizontally. 
Tags
General Discussions
Asked by
Mike
Top achievements
Rank 1
Answers by
Hadib Ahmabi
Top achievements
Rank 1
Mike
Top achievements
Rank 1
Share this question
or