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     Incorrect Total Percentage.

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Incorrect Total Percentage.
 Login/Join
 
Gold member
posted
I'm trying to get a total % that is based on the total value, not a sum of the above values. I work at a university, and am trying to show in a report the total % of graduates that have taken an upgrading and university prep course at some time. I have 3 columns of interest: Grads, UUP_Grads, and a Ratio of the two.

So for example, I have currently:

DEFINE FILE UUP_14_GRADS_2
RATIO1/D5.1% = UUP_GRADS /GRADS *100;
CNTR/I4 WITH CREDENTIAL =1;
END
TABLE FILE UUP_14_GRADS_2
SUM
GRADS AS ''
UUP_GRADS AS ''
RATIO1 AS ''
CNTR NOPRINT
COMPUTE RATIO2/D5.1% = UUP_IND / ONE_IND * 100 / CNTR; AS ''
BY CRED_ORDER NOPRINT
BY LOWEST CREDENTIAL AS 'Credential'
ACROSS LOWEST AY AS ''

The two test columns, ratio1 and ratio2, both in the total row, sum the % values above it, which I don't want. I have looked at some previous posts on this:

http://forums.informationbuild...1057331/m/9767038995
http://forums.informationbuild...1057331/m/9967087426
http://forums.informationbuild...1057331/m/3691084132

Which assume a bit of a different data structure than I have (I think anyway), and I can't get it right with either a DEFINE or a COMPUTE field. Any thoughts?


WebFocus 8.104
Windows 7 Entreprise, SP1
 
Posts: 82 | Location: Abbotsford BC | Registered: March 15, 2010Report This Post
Expert
posted Hide Post
Try "ON TABLE RECOMPUTE field". Also check out other posts covering RECOMPUTE to see the host of previous explanations.

Good luck

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
Gold member
posted Hide Post
quote:
Originally posted by Tony A:
Try "ON TABLE RECOMPUTE field". Also check out other posts covering RECOMPUTE to see the host of previous explanations.

Good luck

T


Tony, thanks for the suggestion. Unfortunately the links I found via searching recomputes with this same problem don't actually seem to have been solved.

What's so irritating to me is that this is a ridiculously simple to do with MS EXCEL. You input the formula column C = A/B and drag it down and you're good to go.


WebFocus 8.104
Windows 7 Entreprise, SP1
 
Posts: 82 | Location: Abbotsford BC | Registered: March 15, 2010Report This Post
Virtuoso
posted Hide Post
Max --

  
DEFINE FILE UUP_14_GRADS_2
  RATIO1/D5.1% = UUP_GRADS /GRADS *100;
  CNTR/I4 WITH CREDENTIAL =1;
END
TABLE FILE UUP_14_GRADS_2
SUM 
...
 RATIO1 AS ''
...
 COMPUTE RATIO2/D5.1% = UUP_IND / ONE_IND * 100 / CNTR; AS ''
BY CRED_ORDER NOPRINT 
BY LOWEST CREDENTIAL AS 'Credential'
ACROSS LOWEST AY AS ''


RATIO1 is defined rather than computed, so if you are surprised that it is summed in the total line, when using RECOMPUTE or SUMMARIZE, then you need to relearn the topic.

As to RATIO2 -- your formula appears to divide by two counters. At the detail level, if both evaluate to 1, the correct result will appear -- but the value in the totals line
-- effectively
100 * sum.UUP_IND / (sum.CNTR * sum.ONE_IND)
-- will be off.

I suggest you explicitly list the components of the formula ...
TABLE FILE UUP_14_GRADS_2
SUM 
 CNTR 
 UUP_IND 
 ONE_IND 
 CNTR
AND COMPUTE RATIO2/D5.1% = UUP_IND / ONE_IND * 100 / CNTR; 
BY CRED_ORDER  
BY LOWEST CREDENTIAL 
ACROSS LOWEST AY 
ON TABLE SUMMARIZE
END

... to see what aggregate values underlie the recomputed value of the computed ratio. You should be able to take it from there


- Jack Gross
WF through 8.1.05
 
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005Report 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     Incorrect Total Percentage.

Copyright © 1996-2020 Information Builders