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     Using previous Row calculated value in webfocus

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Using previous Row calculated value in webfocus
 Login/Join
 
Gold member
posted
Hi,
I have a table where in we have return percentage. I need to create a report where in i need show a row like the below.
Q7 Q8 Q9 Q10 ...
Rs1000invested 5000 6000 4000 5000 ...

Wherein "rs1000invested" values are computed from the oracle table for the last six quarters


Oracle table and their columns
quartercde return%
q1 55 (r1)
q2 47 (r2)
. . (r3)
. .
. .
q12 74 (r12)

I need to do the below calculation for the last 6 quarters

for q7 -- > (1+r1)*1000
for q8 --> (1+r1)*1000*(1+r2)
for q9 --> (1+r1)*1000*(1+r2)*(1+r3)
.
.
.
upto q12


How will I do this in webfocus?

It will be great if I get the solution . Thanks in advance

Srini M


WF 8.0.0.9 Database : oracle

CURRENT:
WebFOCUS 8.0.0.9 /oracle 11 i

 
Posts: 51 | Registered: September 20, 2007Report This Post
Expert
posted Hide Post
textbook perfect case for Financial Modelling Language (FML), which comes as part of WebFOCUS.(and has been part of the FOCUS language since ... forever... and FOCUS is the only language to have such a thing).
Look up Financial Modelling Language in the manuals (maybe someone from Doc Serv will come along and tell you which one) and you'll have a whole new world opened to you. It lets you write excel-like equations that reference row and column values in your output data. its very cool.




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report 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     Using previous Row calculated value in webfocus

Copyright © 1996-2020 Information Builders