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] Sort across part of the report columns

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Sort across part of the report columns
 Login/Join
 
Gold member
posted
I am trying to create a report that sort down by first column, sum on market value, then sort across on different interest rate scenarios. Here is what should look like:

Portfolio Mkt Value A B C D Q

Type A 3,993,605 0.22 0.22 0.22 0.00 -2.00
Type B 13,062 0.23 0.57 0.99 0.00 -1.92

here is the code:
TABLE FILE INVESTMENT/FINANCIAL_MODELING
SUM
BaseMV/D12c
COMPUTE WAGMY/D12.2 = BMV_MY / BaseMV; NOPRINT AS 'Mkt Yield'
COMPUTE WAGEffDur/D12.2 = BMV_ED / BaseMV; NOPRINT AS 'Eff Dur'
COMPUTE WAGCON/D6.2 = BMV_CON / BaseMV; NOPRINT AS 'Eff Conx'
COMPUTE WAGED/D12.2 = MV_ED / MV; AS 'Effective Duration'
BY PORTFOLIO
WHERE ClientName LIKE '&ClientName.Client Name.';
WHERE HOLDINGDATE EQ &HOLDINGDATE.Valuation Date.;
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE SUMMARIZE AS 'TOTAL'
ON TABLE PCHOLD FORMAT HTML

I have a field that has value of A,B,C,D,Q and would like to display WAGED field by this field.

Thanks

This message has been edited. Last edited by: <Kathryn Henning>,


WebFOCUS 8.1.05
Windows, All Outputs
 
Posts: 60 | Registered: March 02, 2015Report This Post
Master
posted Hide Post
A MULTI-VERB request would seem to be the solution.

TABLE FILE XYZ
SUM
A
B
C
BY X
SUM (or maybe PRINT - depending on what you are trying to do)
D
BY X
BY Y
END


If that doesn't do what you want you will likely have to do it in two steps - create a hold file with an intermediate result and use that as the basis for your main report.


WebFOCUS 7.7.05 Windows, Linux, DB2, IBM Lotus Notes, Firebird, Lotus Symphony/OpenOffice. Outputs PDF, Excel 2007 (for OpenOffice integration), WP
 
Posts: 674 | Location: Guelph, Ontario, Canada ... In Focus since 1985 | Registered: September 28, 2010Report This Post
Expert
posted Hide Post
Welcome to the forum Smiler

The closest that you could get to this (without using a few computes etc.) is -
                        A      B      C      D      Q
Portfolio   Mkt Value   
Type A      3,993,605   0.22   0.22   0.22   0.00   -2.00
Type B         13,062   0.23   0.57   0.99   0.00   -1.92

.. using code like this -
TABLE FILE INVESTMENT/FINANCIAL_MODELING
   SUM BaseMV/D12c
    BY PORTFOLIO
   SUM COMPUTE WAGED/D12.2 = MV_ED / MV; AS 'Effective Duration'
    BY PORTFOLIO
ACROSS [field that has value of A,B,C,D,Q]
ON TABLE SET PAGE NOLEAD
END

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report 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] Sort across part of the report columns

Copyright © 1996-2020 Information Builders