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] How to COMPUTE Growth Rate with across table

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] How to COMPUTE Growth Rate with across table
 Login/Join
 
Member
posted
Dears,
I'm a webfocus beginner,I have a rebort need to designe like this


1997 compare growth rate
leve branch v1 v2 v1/v2 v1 v2 v1/v2
1 a 5 8 0.625 3 4 0.75 0.75/0.625 -1
b
c

my code is
TABLE FILE HOLD_KPI_2
SUM
V1/D12C
V2/D12C
COMPUTE rate/D12.2% = V1 / V2 * 100;
BY GROUP_ID
BY LEVEL_DEC
BY ID
BY NAME
ACROSS GROUP

anyone could told me how to Calculate growth rate whit compute?

thanks a lot

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


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 6 | Registered: December 20, 2010Report This Post
Platinum Member
posted Hide Post
Not clear enough to me.
Can you post an example with CAR?


WF 7.7.02 on Windows 7
Teradata
HTML,PDF,EXCEL,AHTML
 
Posts: 165 | Registered: September 29, 2008Report This Post
Member
posted Hide Post
like
TABLE FILE CAR
SUM
DEALER_COST
RETAIL_COST
COMPUTE V1/D12.2 = DEALER_COST / RETAIL_COST;
BY COUNTRY
ACROSS CAR
compute v2/D12.2%=

WHERE CAR EQ 'ALFA ROMEO' OR 'AUDI';

and I need to add compute v2
which is V1(FOR AUDI) / V1 (FOR ALFA ROMEO) -1 (LIKE GROTH RATE)

In my case is across by time dimension
THNKS A LOT


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 6 | Registered: December 20, 2010Report This Post
Master
posted Hide Post
I think this is a simple arithmetic issue:

COMPUTE rate/D12.2% = V1 / V2 * 100;

should be:

COMPUTE RATE/D12.2 = (V2 - V1) / V1 * 100;


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
Member
posted Hide Post
Thanks for George reply
but,in across table it would like

CAR
ALFA ROMEO AUDI
COUNTRY DEALER_COST RETAIL_COST V1 DEALER_COST RETAIL_COST V1 V2
--------------------------------------------------------------------------------
ITALY 16,235 19,565 .83 . . . ?
W GERMANY . . . 5,063 5,970 .85 ?

I don't how to get V1 from ALFA ROMEO and AUDI
to compute rate as v2


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 6 | Registered: December 20, 2010Report This Post
Master
posted Hide Post
Hmmm.... something is getting lost in translation here. You say you want to calculate a growth rate, so I assume you have a value you want to find has increased by a given amount or the percentage of an increase. Of course if you want to calculate changes in rates of growth and how they affect a final outcome you are in the realm of calculus and numerical analysis and I can't help you there.

I'm still unclear what the DEALER_COST / RETAIL_COST gets you, except a value that would normally be less than zero... You say your ACROSS is a time dimension but I don't see one anywhere. Maybe you could try and restate your problem in words, rather than code and someone could help you out.


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
  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] How to COMPUTE Growth Rate with across table

Copyright © 1996-2020 Information Builders