Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] Column titles and percentages

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Column titles and percentages
 Login/Join
 
Silver Member
posted
Below is a sample code of the report that I am trying to fix. I couldn't figure out how to do couple of things.
1. Is there a way to categorize columns under different titles(they are not across fields)?
For ex: I want to show SEATS and SALES as "Type A"(merge cells on top of SEATS & SALES to show Type A ) and LENGTH, WIDTH, HEIGHT as "Type B"

2. I also wanted to show column percentages along the bottom of column totals. – I tried RECAP but it doesn't show correct percentages.

I appreciate if anybody can help me to achieve this.

-*************
DEFINE FILE CAR
GRANDTOT/I5 = SEATS + SALES + LENGTH + WIDTH + HEIGHT;
END
-**************
TABLE FILE CAR
SUM
GRANDTOT NOPRINT

SUM
COMPUTE ROWTOT/I5 = SEATS + SALES + LENGTH + WIDTH + HEIGHT; NOPRINT
BY COUNTRY

SUM
SEATS
SALES
LENGTH
WIDTH
HEIGHT
BY COUNTRY
ACROSS BODYTYPE AS ''

COMPUTE RTOT/I7 = ROWTOT; AS 'Total by Country'
ON TABLE COLUMN-TOTAL
ON TABLE SET PAGE-NUM OFF
END

This message has been edited. Last edited by: Kerry,


WebFOCUS 8.2.05
Windows 2003
Excel, HTML, PDF
 
Posts: 47 | Registered: April 22, 2009Report This Post
Virtuoso
posted Hide Post
Check out HEADALIGN and COLSPAN to see if you can get a column title that spans more than a single column. You may also have to add ans AS phrase to the columns.

You could also get creative with your column titles and do something like this:


DEFINE FILE CAR
GRANDTOT/I5 = SEATS + SALES + LENGTH + WIDTH + HEIGHT;
NBODYTYPE/A200=BODYTYPE|'<BR> <BR>&|nbsp;&|nbsp;&|nbsp;&|nbsp;&|nbsp;&|nbsp;TYPE A&|nbsp;&|nbsp;&|nbsp;&|nbsp;&|nbsp;&|nbsp;&|nbsp;&|nbsp;&|nbsp;&|nbsp;&|nbsp;&|nbsp;&|nbsp;&|nbsp;&|nbsp;&|nbsp;&|nbsp;&|nbsp;&|nbsp;&|nbsp;&|nbsp;TYPE B';
END
-**************
TABLE FILE CAR
SUM
GRANDTOT NOPRINT

SUM
COMPUTE ROWTOT/I5 = SEATS + SALES + LENGTH + WIDTH + HEIGHT; NOPRINT
BY COUNTRY

SUM
SEATS 
SALES 
LENGTH 
WIDTH 
HEIGHT 
BY COUNTRY
ACROSS NBODYTYPE AS ''

COMPUTE RTOT/I7 = ROWTOT; AS 'Total by Country'
ON TABLE COLUMN-TOTAL
ON TABLE SET PAGE-NUM OFF
END


In order to get the percentages to display correctly you need to have and ON TABLE RECOMPUTE.


Regards,

Darin



In FOCUS since 1991
WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex
Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex
WF Client: 77 on Linux w/Tomcat
 
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007Report This Post
Silver Member
posted Hide Post
Darin,
Thank you for your response. Preferred format for this report is Excel, is there a way to skip a line in Excel headings?

I tried RECOMPUTE with prefix but it doesn't work with this query.


WebFOCUS 8.2.05
Windows 2003
Excel, HTML, PDF
 
Posts: 47 | Registered: April 22, 2009Report This Post
Virtuoso
posted Hide Post
Are you meaning column titles? Two commas together insert a blank line in a column title.

Not quite sure what you're trying to do with a prefix.


Regards,

Darin



In FOCUS since 1991
WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex
Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex
WF Client: 77 on Linux w/Tomcat
 
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007Report This Post
Silver Member
posted Hide Post
Darin,
Thank you for all the suggestions, I was able to complete the report using a different method. But the time taken just for aligning total percentages is more than developing 4 new reports and still not aligned properly with column totals. I hope that IBI will introduce a method that can easily calculate and format total column percentages(in Excel) in a future release.


WebFOCUS 8.2.05
Windows 2003
Excel, HTML, PDF
 
Posts: 47 | Registered: April 22, 2009Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] Column titles and percentages

Copyright © 1996-2020 Information Builders