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.
Is there any way to get RPCT. columns to subtotal correctly? I've tried SUMMARIZE and RECOMPUTE and all I get are the sums of the percentages. What I want, of course, are the percentages for the subtotal rows.
TABLE FILE CAR SUM SEATS RPCT.SEATS/D8.2% BY COUNTRY SUMMARIZE ACROSS BODYTYPE END
SET SUMMARYLINES has no effect. Is there some option or command I'm missing? I'll appreciate any and all help.
Test: Win 7 SP1, Dev Studio 8.0.07, SQL Server 2K8, PDF, EXL2K Prod: Win 2K3/8, WF 7.7.02m, SQL Server 2K5/2K8, PDF, EXL2K
Posts: 4 | Location: Cincinnati | Registered: February 04, 2005
Francis is correct. SUMMARIZE/RECOMPUTE do not recalculate the RPCT. prefix on the total lines. Just for fun I tested the MAX. prefix operator and the same is true for this one as well. It seems the prefix operators are calculated as the internal matrix is being built or at some interim level before COMPUTEs. This is probably why they cannot act like or be treated as true COMPUTE fields which are affected correctly by SUMMARIZE/RECOMPUTE.
I suggest using Francis' technique.
Thanks!
Mickey
FOCUS/WebFOCUS 1990 - 2011
Posts: 995 | Location: Gaithersburg, MD, USA | Registered: May 07, 2003
And if you don't like the use of the column coding (C1) you can create an extra field SEATS1 and use that in the code like
DEFINE FILE CAR
SEATS1=SEATS;
END
TABLE FILE CAR
SUM SEATS1 NOPRINT
BY COUNTRY
SUM SEATS
COMPUTE SEATSPCT/D8.2% = SEATS / SEATS1 * 100; AS '%'
BY COUNTRY SUMMARIZE
ACROSS BODYTYPE
END
Frank
prod: WF 7.6.10 platform Windows, databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7 test: WF 7.6.10 on the same platform and databases,IE7
Posts: 2387 | Location: Amsterdam, the Netherlands | Registered: December 03, 2006
Thank you very much. This was exactly what I needed. I was hoping I was missing something that didn't require a lot of extra coding - and I was. Although I don't mind the column technique, I'll make it easier for someone else who may have to maintain my code at some later date and be more explicit. Thanks again Francis, Mickey, and Frank.
Test: Win 7 SP1, Dev Studio 8.0.07, SQL Server 2K8, PDF, EXL2K Prod: Win 2K3/8, WF 7.7.02m, SQL Server 2K5/2K8, PDF, EXL2K
Posts: 4 | Location: Cincinnati | Registered: February 04, 2005