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     [CLOSED] Total on a percent field calculated in the DB

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Total on a percent field calculated in the DB
 Login/Join
 
Guru
posted
I have a report that has $COL1, $COL2, $ Difference of Col1 and Col2, and %Difference of Col1 and Col2. The $ and % differences come from the database. I want to have a total row on the report to sum up the columns but obviously I don't want it to sum up the column that is the percent column - I basically want to recompute it. Is there any way to do that when the values for percent are coming from the DB and are not computes in the report (I realize I can redo the COMPUTE in the report, but I'm curious if there's any way I can get around that).

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


Release: WebFOCUS 7.6.8
OS: Windows
Output formats: HTML, PDF, Excel, csv
 
Posts: 256 | Registered: July 21, 2008Report This Post
Gold member
posted Hide Post
I don't know if this will help you but you could use a multiverb request like the following:

TABLE FILE CAR
SUM COMPUTE SALEST/I9 = SALES;
BY COUNTRY
PRINT CAR SALES
COMPUTE PSALES/D9.2% = SALES / SALEST;
BY COUNTRY
END


WebFOCUS 8103, Windows, App Studio
 
Posts: 80 | Location: NYC | Registered: November 13, 2008Report This Post
Master
posted Hide Post
Rather than doing a column total, check out RECAP. It will allow you to add a computation based on the ST. of the other fields and place them in a subfoot.


Pat
WF 7.6.8, AIX, AS400, NT
AS400 FOCUS, AIX FOCUS,
Oracle, DB2, JDE, Lotus Notes
 
Posts: 755 | Location: TX | Registered: September 25, 2007Report This Post
Guru
posted Hide Post
Doesn't RECAP require a BY field with RECAP in the SUBFOOT of the sort break?


Release: WebFOCUS 7.6.8
OS: Windows
Output formats: HTML, PDF, Excel, csv
 
Posts: 256 | Registered: July 21, 2008Report This Post
Master
posted Hide Post
I do believe you can do an ON TABLE RECAP and ON TABLE SUBFOOT.


Pat
WF 7.6.8, AIX, AS400, NT
AS400 FOCUS, AIX FOCUS,
Oracle, DB2, JDE, Lotus Notes
 
Posts: 755 | Location: TX | Registered: September 25, 2007Report This Post
Virtuoso
posted Hide Post
As an alternative, you could decide to not use the %diff field from the data base, but rather compute it yourself. It should give the same result as when retrieved from the database, and then you could do your total line by just doing a recompute.


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
 
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007Report 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     [CLOSED] Total on a percent field calculated in the DB

Copyright © 1996-2020 Information Builders