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] subtotalling on different by fields using same columns

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] subtotalling on different by fields using same columns
 Login/Join
 
Gold member
posted
Hello,

I need to subtotal on different BY fields but need the same fields to subtotal on.
On the first BY field, I am subtotalling on 2 fields and on the second BY field I am subtotalling on 4 fields.
When I run the report, the subtotal is shown for all 4 fields for both the BY fields.
When using the GUI, I am selecting show subtotals for only 2 fields, but it is not being respected when the report is run.

The following is the code I am using.

Thanks,

TABLE FILE V_FX_SWAPS_FLAT
PRINT 
     V_FX_SWAPS_FLAT.V_FX_SWAPS_FLAT.SL_DEAL_NUMBER AS 'Deal,#'
     V_FX_SWAPS_FLAT.V_FX_SWAPS_FLAT.type AS 'Type'
     V_FX_SWAPS_FLAT.V_FX_SWAPS_FLAT.trade_dt AS 'Trade,Date'
     V_FX_SWAPS_FLAT.V_FX_SWAPS_FLAT.vd_yymd AS 'Value,Date'
     V_FX_SWAPS_FLAT.V_FX_SWAPS_FLAT.slccysold AS 'Buy'
    V_FX_SWAPS_FLAT.V_FX_SWAPS_FLAT.amount_bght AS 'Principal'
     V_FX_SWAPS_FLAT.V_FX_SWAPS_FLAT.srate AS 'Spot,Rate'
  V_FX_SWAPS_FLAT.V_FX_SWAPS_FLAT.SL_CCY_BOUGHT AS 'Against'
     V_FX_SWAPS_FLAT.V_FX_SWAPS_FLAT.equivsold AS 'Equiv,Sold'
     V_FX_SWAPS_FLAT.V_FX_SWAPS_FLAT.fwd_dt AS 'Fwrd,Date'
     V_FX_SWAPS_FLAT.V_FX_SWAPS_FLAT.SL_RATE AS 'Fwrd,Rate'
     V_FX_SWAPS_FLAT.V_FX_SWAPS_FLAT.term AS 'Term,(Days)'
 V_FX_SWAPS_FLAT.V_FX_SWAPS_FLAT.remaining_term AS 'Rem,Term'
V_FX_SWAPS_FLAT.V_FX_SWAPS_FLAT.SL_AMOUNT_BOUGHT AS 'Buy,Amount'
  V_FX_SWAPS_FLAT.V_FX_SWAPS_FLAT.LL_CCY_BOUGHT AS 'Sell'
    V_FX_SWAPS_FLAT.V_FX_SWAPS_FLAT.SL_AMT_SOLD AS 'Amount'
     V_FX_SWAPS_FLAT.V_FX_SWAPS_FLAT.cparty AS 'CParty'
BY  V_FX_SWAPS_FLAT.V_FX_SWAPS_FLAT.SL_CCY_BOUGHT NOPRINT 
BY  V_FX_SWAPS_FLAT.V_FX_SWAPS_FLAT.SL_CCY_SOLD NOPRINT 
BY  V_FX_SWAPS_FLAT.V_FX_SWAPS_FLAT.remaining_term NOPRINT 
     
ON V_FX_SWAPS_FLAT.V_FX_SWAPS_FLAT.SL_CCY_BOUGHT SUBTOTAL
     'V_FX_SWAPS_FLAT.V_FX_SWAPS_FLAT.equivsold'
     'V_FX_SWAPS_FLAT.V_FX_SWAPS_FLAT.SL_AMOUNT_BOUGHT' AS 'Total'
     
ON V_FX_SWAPS_FLAT.V_FX_SWAPS_FLAT.SL_CCY_SOLD SUBTOTAL
     'V_FX_SWAPS_FLAT.V_FX_SWAPS_FLAT.amount_bght'
     'V_FX_SWAPS_FLAT.V_FX_SWAPS_FLAT.equivsold'
     'V_FX_SWAPS_FLAT.V_FX_SWAPS_FLAT.SL_AMOUNT_BOUGHT'
     'V_FX_SWAPS_FLAT.V_FX_SWAPS_FLAT.SL_AMT_SOLD' AS 'Sub-total for'
ON TABLE SET PAGE-NUM NOLEAD 
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
     INCLUDE = endeflt,
$
ENDSTYLE
END
  

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


WebFOCUS 7.7.02Windows
Output Formats: Excel, HTML, PDF
 
Posts: 82 | Registered: February 23, 2011Report This Post
Master
posted Hide Post
Try recap and subfoot to handle this situation.


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
Gold member
posted Hide Post
Thanks a lot for the info.
I got it working using subfoot.


WebFOCUS 7.7.02Windows
Output Formats: Excel, HTML, PDF
 
Posts: 82 | Registered: February 23, 2011Report 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] subtotalling on different by fields using same columns

Copyright © 1996-2020 Information Builders