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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cross-tab

Status
Not open for further replies.

crystalbeginner15

Programmer
Sep 6, 2005
76
US
I have created a report using cross-tab. I need another column to be added for percent which is row's total divided by total's column total.

Please give me any suggestions how to do this.

Thank you.
 
Which version of Crystal? It makes a difference.

[yinyang] Madawc Williams (East Anglia, UK). Using Windows XP & Crystal 10 [yinyang]
 
This is how I'd do it in Crystal 10. First do a formula, value%total{/b]. Then right-click on the Crosstab and choose Crosstab Expert. Add the formula field as a Summarised Field.

If this results in totals you don't want, then right-click, Format Field and suppress those totals.

[yinyang] Madawc Williams (East Anglia, UK). Using Windows XP & Crystal 10 [yinyang]
 
Create a formula like this:

{table.value} % sum({table.value}}

Add this as a summary field with sum as your summary. Then in preview mode, select the summary and click on the % icon in the toolbar.

-LB
 
I wrote
value%total{/b] when I meant value%total, text in bold. A curley bracket in place of a square one, which meant the software here didn't understand it.


[yinyang] Madawc Williams (East Anglia, UK). Using Windows XP & Crystal 10 [yinyang]
 
I added the formula in the summary field with sum as summary but when I preview the report I don't see a seperate column for percent instead I see the percent for each column put in each cell.
 
If you want a separate column with the percent just for the row totals, then you will have to do a manual crosstab. Or you could format the summaries to a horizontal display, suppress the summaries within the internal cells, and resize them to eliminate the white space. Didn't test this, but it might work.

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top