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     excel subfoots/subtotals

Read-Only Read-Only Topic
Go
Search
Notify
Tools
excel subfoots/subtotals
 Login/Join
 
Platinum Member
posted
The user wants subtotals on their excel2k report. This code provides subtotals but it puts the field name in the subtotal. So, they see TOTAL DESC GENERAL REPORTS and they just want to see TOTAL GENERAL REPORTS. I've tried using subfoots but then the totals don't align even if I put positioning in the stylesheet. If I use column-total then a subtotal appears for each by statement and they only want a subtotal at desc and a final total. Suggestions??? Thanks

TABLE FILE HOLDSAT
SUM
CNT.REPORT_NAME AS 'Count'
COMPUTE OPTIONPDF/I8 MISSING ON=IF OPTIONPDF IS MISSING THEN 0 ELSE OPTIONPDF; AS 'Output Format,PDF'
COMPUTE OPTIONHTML/I8 MISSING ON=IF OPTIONHTML IS MISSING THEN 0 ELSE OPTIONHTML; AS 'Output Format,HTML'
COMPUTE OPTIONEXCEL/I8 MISSING ON=IF OPTIONEXCEL IS MISSING THEN 0 ELSE OPTIONEXCEL; AS 'Output Format,EXCEL'
COMPUTE OPTIONCSV/I8 MISSING ON=IF OPTIONCSV IS MISSING THEN 0 ELSE OPTIONCSV; AS 'Output Format,CSV'
BY ORDER NOPRINT
BY DESC NOPRINT
BY TOTAL HIGHEST CNT.REPORT_NAME NOPRINT
BY NAME AS 'Report Name'

ON DESC SUBTOTAL

ON DESC SUBHEAD
"

webfocus 8.105M; os: windows; pdf, html, exl2k, csv
 
Posts: 179 | Registered: November 10, 2004Report This Post
Master
posted Hide Post
check this forum,

https://forums.informationbuilders.com/eve/forums/a/tpc/...931098331#8931098331


WFConsultant

WF 8105M on Win7/Tomcat
 
Posts: 780 | Location: Florida | Registered: January 09, 2005Report This Post
Platinum Member
posted Hide Post
thanks ... that worked. I tried searching for excel posts but didn't come across the one you attached, so thanks for guiding me in that direction.


webfocus 8.105M; os: windows; pdf, html, exl2k, csv
 
Posts: 179 | Registered: November 10, 2004Report This Post
Member
posted Hide Post
I've been struggling with Excel placement as well, this week. You can use SUBFOOT if you use TABFOOTING in the style sheet to control the placement of the data into the desired Excel cell(s). Use a spot marker <+0> between the SUBFOOT text and the first data item. Seperate each item by a space if you want to skip columns.

Consecutive columns could be defined this way:

ON TABLE SUBFOOT
"Total Net Expense <+0>
TYPE=TABFOOTING, HEADALIGN=BODY,$
TYPE=TABFOOTING, OBJECT=FIELD, ITEM=1, JUSTIFY=RIGHT, COLOR=RED,$
TYPE=TABFOOTING, OBJECT=FIELD, ITEM=2, JUSTIFY=RIGHT, COLOR=BLUE,$
TYPE=TABFOOTING, OBJECT=FIELD, ITEM=3, JUSTIFY=RIGHT, COLOR=GREEN,$

Items 1, 2, and 3 refer to the ST's defined in the SUBFOOT statement and do not include any spaces between the ST's.

If you want to skip a column in Excel between COL2 and COL3 (perhaps you have column between them that you do not want to subtotal) you could define it this way:

ON TABLE SUBFOOT
"Total Net Expense <+0>
TYPE=TABFOOTING, HEADALIGN=BODY,$
TYPE=TABFOOTING, OBJECT=FIELD, ITEM=1, JUSTIFY=RIGHT, COLOR=RED,$
TYPE=TABFOOTING, OBJECT=FIELD, ITEM=2, JUSTIFY=RIGHT, COLOR=BLUE,$
TYPE=TABFOOTING, OBJECT=FIELD, ITEM=3, JUSTIFY=RIGHT, COLOR=GREEN,$

Note the space between
Another of our developer's has used TABHEADING to equal effect.


WebFocus 7.1.4 Win2K Client

WebFocus 7.1.6 Server
 
Posts: 22 | Location: san antonio texas | Registered: January 11, 2005Report 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     excel subfoots/subtotals

Copyright © 1996-2020 Information Builders