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     Display Subtotals Only

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Display Subtotals Only
 Login/Join
 
Member
posted
How do I display only subtotals in my report (supressing the individual lines of data)? I'd like to do this via the GUI if possible. Thanks!


WebFOCUS 7.6.8
MS Windows XP
 
Posts: 15 | Location: Minneapolis | Registered: February 29, 2008Report This Post
Silver Member
posted Hide Post
Is there some other condition associated with this task that doesn't get processed by clicking on the "Sum" tab and, perhaps, removing sort fields until you get to the level you want?


Jeff
WebFOCUS 8.0.09, Unix-Win-z/OS
FOCUS 7.3.1 on z/OS
 
Posts: 34 | Location: Minneapolis, MN | Registered: June 10, 2003Report This Post
Member
posted Hide Post
I'm sorting BY a date field, and that is my only sort field. I tried to use SUM, but the results are not what I want. What I need out of this report is to show aggregated monthly totals for the data. The individual lines of data within each month are unwanted.


WebFOCUS 7.6.8
MS Windows XP
 
Posts: 15 | Location: Minneapolis | Registered: February 29, 2008Report This Post
Silver Member
posted Hide Post
So, I'm guessing that the date field is MDYY format (mm/dd/yyyy). Try defining a new field with format MYY, assign it the original date field, and use that as your BY field.


Jeff
WebFOCUS 8.0.09, Unix-Win-z/OS
FOCUS 7.3.1 on z/OS
 
Posts: 34 | Location: Minneapolis, MN | Registered: June 10, 2003Report This Post
Member
posted Hide Post
Thanks - I've actually done that already, which got me closer. I've got the subtotals I need, but now I want to get rid of the individual lines of data.

To clarify, I have a defined MYY date field being used as my lone BY field. I then have two numeric Detail columns, followed by a computed field (on the two numeric fields). I have subtotals at each change in the month, and I have a recompute on the subtotal.


WebFOCUS 7.6.8
MS Windows XP
 
Posts: 15 | Location: Minneapolis | Registered: February 29, 2008Report This Post
Expert
posted Hide Post
plusrelo,

While in the Painter, why not experiment by double-clicking the columns, and, see what options are available, like visible or not???


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
 
Posts: 1972 | Location: Centennial, CO | Registered: January 31, 2006Report This Post
Silver Member
posted Hide Post
You need to use SUM to eliminate the detail. I'm thinking that, with your only BY field being the MYY field, the subtotal line will be redundant.

Regarding the Compute/Recompute:
If you want the Computed field to be summed in the report, make it a defined field. If you leave it as a computed field, it will be calculated based on the sums of the other two fields.


Jeff
WebFOCUS 8.0.09, Unix-Win-z/OS
FOCUS 7.3.1 on z/OS
 
Posts: 34 | Location: Minneapolis, MN | Registered: June 10, 2003Report This Post
Member
posted Hide Post
That makes the entire column invisible.


WebFOCUS 7.6.8
MS Windows XP
 
Posts: 15 | Location: Minneapolis | Registered: February 29, 2008Report This Post
Member
posted Hide Post
That didn't work, either. Smiler

At this point, maybe I'll open a ticket with the help desk. It may be that someone needs to see the file.

Thanks for your efforts!


WebFOCUS 7.6.8
MS Windows XP
 
Posts: 15 | Location: Minneapolis | Registered: February 29, 2008Report This Post
Member
posted Hide Post
Use dummy/blank fields as placeholders for your columns. Sum the fields you need using NOPRINT. Then use SUBFOOTS with ST. to display your subtotals.

Here is a quick and dirty sample:

DEFINE FILE CAR
DUMMY1/A1=' ';
DUMMY2/A1=' ';
DUMMY3/A1=' ';
COL1/A20 = 'Country';
COL2/A20 = 'Dealer Cost';
COL3/A20 = 'Retail Cost';
COL4/A20 = 'Sales';
END
TABLE FILE CAR
SUM
DUMMY1 AS ' '
DUMMY2 AS ' '
DUMMY3 AS ' '

DEALER_COST NOPRINT
RETAIL_COST NOPRINT
SALES NOPRINT

BY COUNTRY NOPRINT


ON COUNTRY SUBFOOT

"
HEADING
"
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET STYLE *
UNITS=IN,
PAGESIZE='SCREEN',
LEFTMARGIN=0.150000,
RIGHTMARGIN=0.150000,
TOPMARGIN=0.200000,
BOTTOMMARGIN=0.200000,
SQUEEZE=ON,
ORIENTATION=PORTRAIT,
$
TYPE=REPORT,
FONT='ARIAL',
SIZE=8,
COLOR='BLACK',
BACKCOLOR='NONE',
STYLE=NORMAL,
RIGHTGAP=0.001025,
TOPGAP=0.013889,
BOTTOMGAP=0.027778,$
-*-----------------------------------
-* FOR ALL COLUMNS
-*-----------------------------------
TYPE=REPORT, COLUMN=P1,SQUEEZE=1.5,LEFTGAP=0.00,RIGHTGAP=0.0,$
TYPE=REPORT, COLUMN=P2,SQUEEZE=1.5,LEFTGAP=0.00,RIGHTGAP=0.0,$
TYPE=REPORT, COLUMN=P3,SQUEEZE=1.5,LEFTGAP=0.00,RIGHTGAP=0.0,$
TYPE=REPORT, COLUMN=P4,SQUEEZE=1.5,LEFTGAP=0.00,RIGHTGAP=0.0,$
-*-----------------------------------
-* FOR HEADING
-*-----------------------------------
TYPE=HEADING,ITEM=1,POSITION=P1,JUSTIFY=LEFT,$
TYPE=HEADING,ITEM=2,POSITION=P2,JUSTIFY=RIGHT,$
TYPE=HEADING,ITEM=3,POSITION=P3,JUSTIFY=RIGHT,$
TYPE=HEADING,ITEM=4,POSITION=P4,JUSTIFY=RIGHT,$
-*-----------------------------------
-* FOR SUBFOOTS
-*-----------------------------------
TYPE=SUBFOOT,ITEM=1,POSITION=P1,JUSTIFY=LEFT,$
TYPE=SUBFOOT,ITEM=2,POSITION=P2,JUSTIFY=RIGHT,$
TYPE=SUBFOOT,ITEM=3,POSITION=P3,JUSTIFY=RIGHT,$
TYPE=SUBFOOT,ITEM=4,POSITION=P4,JUSTIFY=RIGHT,$
ENDSTYLE
END


WebFOCUS 760 HPUX - Using MRE, Report Caster, Dashboard and Self Service.
 
Posts: 16 | Location: California | Registered: April 18, 2007Report This Post
Virtuoso
posted Hide Post
PlusRelo,

Could you post your procedure? It seems that this is a very simple SUM ... BY. Like this:

  
TABLE FILE CAR
SUM RETAIL_COST DEALER_COST 
    COMPUTE DIFF/D7=RETAIL_COST - DEALER_COST;
BY COUNTRY
END


Daniel
In Focus since 1982
wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF

 
Posts: 1980 | Location: Tel Aviv, Israel | Registered: March 23, 2006Report This Post
Member
posted Hide Post
Here's the code:

TABLE FILE GL_DETAILPOSTING
PRINT
EMPLOYEES
REVENUE
COMPUTE REVPEREMP/D12.2 = REVENUE / EMPLOYEES;
BY NEWPOSTDATE

ON NEWPOSTDATE RECOMPUTE AS '*TOTAL'
WHERE POSTINGDATE GT '20070101';
WHERE DEBITAMOUNT NE .00;
WHERE ( ACCOUNT IS '3$$-$$' ) OR ( ACCOUNT EQ '950-00' );
ON TABLE SET PAGE-NUM OFF
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
UNITS=IN,
SQUEEZE=ON,
ORIENTATION=PORTRAIT,


WebFOCUS 7.6.8
MS Windows XP
 
Posts: 15 | Location: Minneapolis | Registered: February 29, 2008Report This Post
Virtuoso
posted Hide Post
Plus,

TABLE FILE GL_DETAILPOSTING
-*PRINT
SUM 
EMPLOYEES
REVENUE
COMPUTE REVPEREMP/D12.2 = REVENUE / EMPLOYEES;
BY NEWPOSTDATE

-*ON NEWPOSTDATE RECOMPUTE AS '*TOTAL'
WHERE POSTINGDATE GT '20070101';
WHERE DEBITAMOUNT NE .00;
WHERE ( ACCOUNT IS '3$$-$$' ) OR ( ACCOUNT EQ '950-00' );
ON TABLE SET PAGE-NUM OFF 
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLCSS ON

this should do it.

In the GUI click on the SUM button for your fields EMPLOYEES REVENUE and REVPEREMP.


Daniel
In Focus since 1982
wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF

 
Posts: 1980 | Location: Tel Aviv, Israel | Registered: March 23, 2006Report This Post
Expert
posted Hide Post
quote:
TABLE FILE GL_DETAILPOSTING
PRINT
EMPLOYEES
REVENUE
COMPUTE REVPEREMP/D12.2 = REVENUE / EMPLOYEES;
BY NEWPOSTDATE



Try:

  
TABLE FILE GL_DETAILPOSTING
SUM
EMPLOYEES NOPRINT
REVENUE   NOPRINT
  BY NEWPOSTDATE
SUM
COMPUTE REVPEREMP/D12.2 = REVENUE / EMPLOYEES;
BY NEWPOSTDATE


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
 
Posts: 1972 | Location: Centennial, CO | Registered: January 31, 2006Report This Post
Member
posted Hide Post
Bingo! In hindsight, that was really easy. Embarassingly so. Big Grin I guess I'll chalk that up to being a newbie.

Thanks to everyone for your help!


WebFOCUS 7.6.8
MS Windows XP
 
Posts: 15 | Location: Minneapolis | Registered: February 29, 2008Report 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     Display Subtotals Only

Copyright © 1996-2020 Information Builders