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.
I'm trying to use RPCT on a across that only has two columns. When I run the report some of the rows add up to only 99% and not 100%.
When I add a decimal point they are all just zero. Below is the code I'm using and the output. My question is, how do I get either the decimal points, or get WebFocus to round and not truncate.
TABLE FILE GRADECOUNTS
SUM
RPCT.GRADECOUNTS.GRADECOU.BID/D8.2% AS ''
BY LOWEST GRADECOUNTS.GRADECOU.CRS_TITLE
ACROSS LOWEST GRADECOUNTS.GRADECOU.Category
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE NOTOTAL
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
INCLUDE = IBFS:/EDA/EDASERVE/_EDAHOME/ETC/endeflt.sty,
$
ENDSTYLE
END
What is the actual type of GRADECOUNTS.GRADECOU.BID?
I suspect that it doesn't have a decimal point and so the RPCT calculation is rounding to whole numbers.
That you display that result with two decimals doesn't change that.
You'll probably need to COMPUTE the result in the correct format or DEFINE the base field in a way that it has sufficient precision.
WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010 : Member of User Group Benelux :
GRADECOUNTS.GRADECOU.BID is actually a count of an alphanumeric field earlier on in the process. I'll see if I can use a COMPUTE or DEFINE for the count field.
TABLE FILE BASELIST
SUM
CNT.DST.BASELIST.BASELIST.BID AS 'COUNT,DISTINCT,BASELIST.BASELIST.BID'
BY BASELIST.BASELIST.CRS_TITLE
BY TOTAL LOWEST COMPUTE GRADE/A20 = IF J3.BASELIST.S_GRADE EQ MISSING THEN 'W' ELSE J3.BASELIST.S_GRADE;
BY LOWEST J3.BASELIST.S_GRADE
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE NOTOTAL
ON TABLE HOLD AS GRADECOUNTS
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
INCLUDE = IBFS:/EDA/EDASERVE/_EDAHOME/ETC/endeflt.sty,
$
ENDSTYLE
END
WebFocus App Studio 8.1.0.5, Windows 7 64bit.
Posts: 65 | Location: Missouri, USA | Registered: March 06, 2014