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]Repeating SubTotals

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED]Repeating SubTotals
 Login/Join
 
Guru
posted
Country Car Cost
A1      B1    10
A1      B2     2
Subtotal A1   12
B1      C1     8
B1      C2    12
Subtotal B1   20

Subtotal A1   12
Subtotal B1   20

We have a standard report to create with # and subtotals. All easy to do.
We have been asked repeat the subtotals at the bottom.

Any ideas?

Fernando

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


Prod WF 8.1.04, QA WF 8.2.03, Dev WF 8.2.03
 
Posts: 278 | Registered: October 10, 2006Report This Post
Expert
posted Hide Post
Fernando,

I'd say you can do this with FRL.


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Virtuoso
posted Hide Post
Or with McGuyver


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
Virtuoso
posted Hide Post
Example of McGuyver:

  
-* File Fernando1.fex
SET NODATA = ' '
JOIN BLANK WITH SALES IN CAR TO BLANK IN FSEQ AS B_
-*
DEFINE FILE CAR
BLANK/A1 WITH SALES=' ';
XCOUNTRY/A16=IF COUNTER EQ 2 THEN 'Total ' | COUNTRY ELSE COUNTRY;
XCAR/A16=IF COUNTER EQ 2 THEN ' ' ELSE CAR;
END
-*
TABLE FILE CAR
SUM SALES
BY COUNTER NOPRINT SUBFOOT
" "
BY XCOUNTRY AS COUNTRY 
ON XCOUNTRY SUBTOTAL AS 'Total' WHEN COUNTER EQ 1
BY XCAR AS CAR
WHERE COUNTER LE 2
ON TABLE NOTOTAL
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE SET ONLINE-FMT STANDARD
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
GRID=OFF, $
ENDSTYLE
END


Output:
  
  COUNTRY           CAR                SALES                                    
  -------           ---                -----                                    
  ENGLAND           JAGUAR             12000
                    JENSEN                 0
                    TRIUMPH                0
  
  Total ENGLAND                        12000
  
  FRANCE            PEUGEOT                0
  
  Total FRANCE                             0
  
  ITALY             ALFA ROMEO         30200
                    MASERATI               0
  
  Total ITALY                          30200
  
  JAPAN             DATSUN             43000
                    TOYOTA             35030
  
  Total JAPAN                          78030
  
  W GERMANY         AUDI                7800
                    BMW                80390
  
  Total W GERMANY                      88190
  
   
  Total ENGLAND                        12000
  
  Total FRANCE                             0
  
  Total ITALY                          30200
  
  Total JAPAN                          78030
  
  Total W GERMANY                      88190
  
   



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
Guru
posted Hide Post
Either of the solutions is good.

Thanks guys.

Fernando


Prod WF 8.1.04, QA WF 8.2.03, Dev WF 8.2.03
 
Posts: 278 | Registered: October 10, 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     [SOLVED]Repeating SubTotals

Copyright © 1996-2020 Information Builders