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] Grand Totals on top ?

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Grand Totals on top ?
 Login/Join
 
Gold member
posted
Hi all,

Is there a way to make "Grand Totals" appear on the top and also at the bottom ?

Thank you,

Shravan

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


7.7.03, Windows 7, SQL Server 2005
 
Posts: 92 | Location: Carmel, IN | Registered: May 09, 2008Report This Post
Expert
posted Hide Post
TABLE FILE CAR
SUM SALES 
BY COUNTRY
ON TABLE COLUMN-TOTAL
HEADING
"<TOT.SALES"
END


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
 
Posts: 2723 | Location: Ann Arbor, MI | Registered: April 05, 2006Report This Post
Gold member
posted Hide Post
Thanks, Ginny.

But this way doesn't it appear on all the pages ? So, may be I will add a condition so that it will appear only on the first page.


7.7.03, Windows 7, SQL Server 2005
 
Posts: 92 | Location: Carmel, IN | Registered: May 09, 2008Report This Post
Guru
posted Hide Post
Just add

/*
ON TABLE SUBHEAD
"
instead of the HEADING


WF 7.6.11
Oracle
WebSphere
Windows NT-5.2 x86 32bit
 
Posts: 398 | Registered: February 04, 2008Report This Post
Virtuoso
posted Hide Post
Shravan,

There is a new SET command in WF7.6. See below:
  
-* File shravan3.fex
SET DUPLICATECOL=OFF
TABLE FILE CAR
SUM SALES
PRINT SALES BY COUNTRY BY CAR BY BODYTYPE
ON TABLE COLUMN-TOTAL
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
Expert
posted Hide Post
Danny,

This is in 7.6.7, not in 7.6.5 which he has. Trust me. I tried it and it doesn't work.

But it would be a great solution.


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
 
Posts: 2723 | Location: Ann Arbor, MI | Registered: April 05, 2006Report This Post
Virtuoso
posted Hide Post
Oh, well...
Then one can always trust Mc Guyver:
  
JOIN BLANK WITH SALES IN CAR TO BLANK IN FSEQ AS B_
DEFINE FILE CAR
BLANK/A1 WITH SALES=' ';
XCOUNTRY/A10=IF COUNTER EQ 1 THEN 'Grand' ELSE COUNTRY;
XCAR/A16=IF COUNTER EQ 1 THEN ' ' ELSE CAR;
COUNTRYSORT/A1=IF COUNTER EQ 1 THEN 'T' ELSE ' ';
END
TABLE FILE CAR
IF COUNTER LE 2
SUM SALES
BY HIGHEST COUNTRYSORT NOPRINT
SUBTOTAL AS 'Grand' WHEN COUNTRYSORT NE 'T'
BY XCOUNTRY  AS COUNTRY
BY XCAR AS CAR
ON TABLE NOTOTAL
ON TABLE SET HTMLCSS ON
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
Hi Shravan,

If this is the solution you are looking for then please have a look at the below code:



SALES SEATS WEIGHT
TOTAL 208420 70 45,791
ENGLAND 12000 13 13,876
FRANCE 0 5 2,860
ITALY 30200 10 10,915
JAPAN 78030 8 4,269
W GERMANY 88190 34 13,871
TOTAL 208420 70 45,791

--------------------


TABLE FILE CAR
SUM
COMPUTE ORDER/I1 = 2;
SALES
SEATS
WEIGHT
BY COUNTRY
ON TABLE HOLD AS CONTFL FORMAT ALPHA
END

TABLE FILE CONTFL
SUM
COMPUTE ORDER/I1 = 1;
COMPUTE COUNTRY/A10 = 'TOTAL';
SALES
SEATS
WEIGHT
ON TABLE HOLD AS TOTFL1 FORMAT ALPHA
END

TABLE FILE TOTFL1
SUM
COMPUTE ORDER/I1 = 3;
COMPUTE COUNTRY/A10 = 'TOTAL';
SALES
SEATS
WEIGHT
ON TABLE HOLD AS TOTFL2 FORMAT ALPHA
END

TABLE FILE TOTFL1
PRINT
SALES
SEATS
WEIGHT
BY ORDER NOPRINT
BY COUNTRY
MORE
FILE CONTFL
MORE
FILE TOTFL2
END


WF 764
Windows
Excel, HTML, PDF, XML
 
Posts: 10 | Registered: March 20, 2009Report This Post
Virtuoso
posted Hide Post
Vidya,

Your solution entails reading the file 4 times and the use of MORE. I suggest that the use of the McGuyver technique is more economical.


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
  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] Grand Totals on top ?

Copyright © 1996-2020 Information Builders