Focal Point
Subtotals

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/1101048242

August 20, 2007, 10:29 AM
<Umar Farook S>
Subtotals
hi i get an output like this

Portfolio MM Ref# Murex Ref# Type Counterparty NAIC Rating
BCVOLRT MSS027089 1636 Swap BEAR STEARNS BK
Subtotal BCVOLRT
1636
BCVOLRT MSS027116 1637 Swap UBS AG
Subtotal BCVOLRT
1637
BCVOLRT MSO026994 2727 Option BEAR STEARNS BK
Subtotal BCVOLRT
2727
BCVOLRT MSO026996 2728 Option BEAR STEARNS BK
Subtotal BCVOLRT
2728
BCVOLRT MSO027027 2729 Option BEAR STEARNS BK
Subtotal BCVOLRT
2729

But i need an ouput like this

BCVOLRT MSS027089 1636 Swap BEAR STEARNS BK
BCVOLRT MSS027116 1637 Swap UBS AG
BCVOLRT MSO026994 2727 Option BEAR STEARNS BK
BCVOLRT MSO026996 2728 Option BEAR STEARNS BK
BCVOLRT MSO027027 2729 Option BEAR STEARNS BK

Subtotal BCVOLRT

the code that i am using is
PRINT
PORTFOLIO_SUB_SEGMENT AS 'Portfolio'
MM_REF_NUMBER AS 'MM Ref#'
ASSET_ID AS 'Murex Ref#'
ASSET_TYPE AS 'Type'
COUNTERPARTY AS 'Counterparty'
NAIC_RATING AS 'NAIC Rating'
BY LEGAL_ENTITY_LONG_NAME NOPRINT
BY ASSET_ID NOPRINT
BY PORTFOLIO_SUB_SEGMENT NOPRINT
BY COUNTERPARTY NOPRINT
ON PORTFOLIO_SUB_SEGMENT NOPRINT SUBTOTAL AS 'Subtotal'
ON LEGAL_ENTITY_LONG_NAME NOPRINT SUBTOTAL AS 'Grand Total'
August 20, 2007, 10:37 AM
FrankDutch
quote:
ON PORTFOLIO_SUB_SEGMENT NOPRINT SUBTOTAL AS 'Subtotal'


remove that line...




Frank

prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7

August 20, 2007, 11:06 AM
<Umar Farook S>
but i need a subtotal on portfolio
August 20, 2007, 11:17 AM
FrankDutch
Ok, in that case

PRINT
PORTFOLIO_SUB_SEGMENT NOPRINT 
MM_REF_NUMBER AS 'MM Ref#'
ASSET_ID AS 'Murex Ref#'
ASSET_TYPE AS 'Type'
COUNTERPARTY AS 'Counterparty'
NAIC_RATING AS 'NAIC Rating'
BY LEGAL_ENTITY_LONG_NAME NOPRINT
BY ASSET_ID NOPRINT
BY PORTFOLIO_SUB_SEGMENT NOPRINT
BY COUNTERPARTY NOPRINT
ON PORTFOLIO_SUB_SEGMENT NOPRINT SUBTOTAL AS 'Subtotal'
ON PORTFOLIO_SUB_SEGMENT SUBHEAD
"<PORTFOLIO_SUB_SEGMENT"
ON LEGAL_ENTITY_LONG_NAME NOPRINT SUBTOTAL AS 'Grand Total'





Frank

prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7

August 20, 2007, 12:16 PM
<Umar Farook S>
nothing seems to work out my way
August 20, 2007, 02:56 PM
Gizmo
You issue is probably due to either the legal entity or the asset changing before the portfolio. Move the portfolio sort higher.



Windows: WF 7.6.2: SQL Server 2008 R2
August 20, 2007, 04:19 PM
ypatel
I think Gizmo is right !! ASSET_ID is changing on every record so you getting subtotal on every line. putting "BY PORTFOLIO_SUB_SEGMENT NOPRINT" as the first SORT/by field should give you what you want.
...
TABLE FILE ...
PRINT
PORTFOLIO_SUB_SEGMENT AS 'Portfolio'
MM_REF_NUMBER AS 'MM Ref#'
ASSET_ID AS 'Murex Ref#'
ASSET_TYPE AS 'Type'
COUNTERPARTY AS 'Counterparty'
NAIC_RATING AS 'NAIC Rating'
--
BY PORTFOLIO_SUB_SEGMENT NOPRINT
--
BY LEGAL_ENTITY_LONG_NAME NOPRINT
BY ASSET_ID NOPRINT

BY COUNTERPARTY NOPRINT
ON PORTFOLIO_SUB_SEGMENT NOPRINT SUBTOTAL AS 'Subtotal'
ON LEGAL_ENTITY_LONG_NAME NOPRINT SUBTOTAL AS 'Grand Total'


-Yogesh Patel
------------------------------------------------------------------------
PROD: WF 764 on Linux Apache tomcat v5.5
DEV: WF 768 on Linux
August 21, 2007, 09:46 AM
<Umar Farook S>
yup thanks got it right by rearanging the sortby columns