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]Computing Rate Problem

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED]Computing Rate Problem
 Login/Join
 
Member
posted
I have the following data.

FIELD1	FIELD2	TOTAL	NET	
L001	AA	132	2	
L001	BB	275	3	
L001	CC	582	6	
L002	AA	110	1	
L002	BB	29	1	


In the report, I am rolling up FIELD1. My TOTAL and NET are coming out right, but the RATE (defined by NET/TOTAL in the report) is all wrong. What it is doing is taking the rolled up NET and dividing it by the last TOTAL for FIELD1. How can I make it compute RATE using both rolled up fields?


FIELD1	TOTAL	NET	RATE	
L001	989	11	1.89%	<--- should be 1.11%
L002	139	2	6.90%	<--- should be 1.44%


I also need to make sure column totals compute the RATE correctly as well. Right now, it is simple adding up all of the rates. Thanks.

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


WebFOCUS 7.6.8
zOS 1.9 (Mainframe)
Excel, PDF, HTML, Active HTML
 
Posts: 18 | Registered: April 13, 2009Report This Post
Master
posted Hide Post
I haven't tested this but try:
COMPUTE RATE/D5.2=SUM.NET / SUM.TOTAL;
If that doesn't work, try
COMPUTE RATE/D5.2=ST.NET / ST.TOTAL;
Either way you will need a BY on Field1


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
Member
posted Hide Post
Where do I place the COMPUTE statement in my code?


WebFOCUS 7.6.8
zOS 1.9 (Mainframe)
Excel, PDF, HTML, Active HTML
 
Posts: 18 | Registered: April 13, 2009Report This Post
Expert
posted Hide Post
quote:
Where do I place the COMPUTE statement in my code?
You are joking of course!

If you really don't know then go and ask someone where the manual is and look for COMPUTE in the index.

If that is beyond you then call IB and ask for a days consultancy. Oh, and while you are doing that ask about training courses as well!

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
Master
posted Hide Post
Manuals can be downloaded in PDF format from IBI's website.


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
Member
posted Hide Post
I apologize for my stupid follow-up question. I have figured it out and the COMPUTE statement works perfectly. Thank you for your patience and your help.


WebFOCUS 7.6.8
zOS 1.9 (Mainframe)
Excel, PDF, HTML, Active HTML
 
Posts: 18 | Registered: April 13, 2009Report This Post
Expert
posted Hide Post
quote:
I apologize for my stupid follow-up question.
Well it was a Monday Wink

T
 
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     [SOLVED]Computing Rate Problem

Copyright © 1996-2020 Information Builders