Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cross Tab Column Headings 1

Status
Not open for further replies.

dwooten

Technical User
Jul 14, 2005
18
US
Hello,

If a cross tab has more than 1 column (let's say 2) is there a way to align the column headings directly next to each other as opposed to 1 column being on top of the other column?

Ex: |Column 1 Heading | Column2 Heading|

as opposed to

|Column1 Heading|
|Column2 Heading|
 
You are more likely to see:

Col1Heading1 Col1Heading2
Col2Heading1 Col2Heading2 Col2Heading1 Col2Heading2

So what would you want to see in this case?

-LB
 
I believe the first example provided.
Col1Heading1
Col2Heading1 Col2Heading2


Thank you for your response.

DW
 
I don't follow your response. Are you saying there is only one instance of Col1? Is it a label or something? Please show an example with actual headings, rows, and summaries.

If it is a label, and you want the col1 to show the total, then remove col1 as a column field, go to the customize style tab, check "show row total on left", and then manually change the "Total" header to the Col1 text.

-LB
 
Thanks for your reply,
Column 1 will isn't a total but rather a database field having it's own unique values. Same applies to column 2. I want the layout to have the 2 columns directly next to each other. Currently I can get the field values to line up next to each other but not the column headings. All Totals/Summaries will be suppressed.

Ex: Current layout
--------------
Col 1 db desc
-------------
Col 2 db desc
------------
Col 1 value |Col 2 value
-------------------------

Desired Layout:
-----------------
Col 1 db desc | Col 2 db desc
-----------------------------
Col 1 value | Col 2 value

Let me know if you need further info.

Thanks,
Dan
 
Why are you doing this if you the totals and summaries are suppressed? Are you sure there isn't a better way?

As I requested earlier, please show an example with actual headings, rows, and summaries--I just can't follow what you mean. You can format summaries to be horizontal or you can use conditional formulas to create a horizontal display, but I can't tell what you are going for, and I think it would become obvious with actual data, instead of the abstract description.

-LB
 
Thanks LB. I've attempted to upload a png file.

Dan
 
That doesn't work. All you really need to show is a mockup with several rows of data.

-LB
 
Thanks LB. I have a mockup below showing the current layout and the desired layout. Let me know if you have any further questions, etc.

Current Layout: includes a column for Standards and a column for objectives.

__________________________
Std 1 Std 2
__________________________
Obj.A Obj.B Obj.C Obj.L

_____________________________________
Row 1 A 3 A 4 C 3 C 1
_____________________________________
Row 2 D 3 D 3 B 2 B 2
_____________________________________
Row 3 B 2 B 3 A 2 A 3
_____________________________________
Row 4 C 3 C 3 D 3 D 4
_____________________________________


Desired Layout - would have the standard and the objective columns directly next to each other.

_______________________________________
Std 1 Obj.A Obj.B Std 2 Obj.C Obj.L

_________________________________________________
Row 1 A 3 4 C 3 1
_________________________________________________
Row 2 D 3 3 B 2 2
_________________________________________________
Row 3 B 2 3 A 2 3
_________________________________________________
Row 4 C 3 3 D 3 4
_________________________________________________


Regards,
Dan
 
I don't think an inserted crosstab would display the way you are showing in your initial example. Please go into the crosstab and identify the column fields as entered into the expert, the row field, and the summary fields, using actual table.field names. I'm just not following this as presented. To get what you are showing, I think there would have to be two summaries.

-LB
 
Thanks LB.

Here is some additional info:

columns: Standard.StandardID
Objective.ObjectiveID

Row: Student.Name

Summarized Fields: Max of Standard.Letter
Max of Objective.Numeric

NOte: For every standard there can be 1 or more objectives associated to it.


regards,
Dan
 
I think you would have to create a manual crosstab to accomplish this, which would entail creating a formula for each column instance, as in:

//{@Std1}:
if {Standard.StandardID} = "Std1" then
{Standard.Letter}

//{@Std1ObjA}:
if {Standard.StandardID} = "Std1" and
{Objective.ObjectiveID} = "A" then
{Objective.ObjectiveLetter}

//etc.

Insert a group on {Student.Name}. Place the formulas in the detail section and insert maximums on them at the group level. Drag the groupname into the group footer. Then suppress the detail section and group header section.

-LB
 
Thanks LB.

I appreciate your assistance.

Dan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top