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 have a report that needs to count the number of occurrences of a particular text value in a single column, and display that count in a subtotal section of the report for a corresponding BY column.
Example: State City # of Widgets Available ----------------------------------------- NY Yonkers 5 Y Tarrytown 7 N NYC 30 Y --------------- Total NY 42 2
NJ Trenton 18 Y Jersey City 29 Y Newark 13 Y --------------- Total NJ 60 3
In this example I need to count the number of 'Y' values in the available column and display that value in the "State" sub total section.
How can I do this in WebFOCUS?This message has been edited. Last edited by: <Kathryn Henning>,
I want the subtotal for NB_AVAIL to appear under the AVAILABLE column. Your example does not display that field. I do not want to display the DEFINE field.
DEFINE FILE CAR
SEDAN /P4 = IF BODYTYPE EQ 'SEDAN' THEN 1 ELSE 0;
END
TABLE FILE CAR
PRINT CAR.BODY.DEALER_COST
CAR.BODY.SEDAN
BY CAR.ORIGIN.COUNTRY
BY LOWEST CAR.BODY.BODYTYPE
ON CAR.BODY.BODYTYPE SUBFOOT WITHIN
"TOTAL <CAR.BODY.BODYTYPE<CAR.BODY.DEALER_COST<CAR.BODY.SEDAN"
""
WHERE COUNTRY EQ 'ENGLAND';
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE COLUMN-TOTAL AS 'GAND-TOTAL' 'CAR.BODY.DEALER_COST' 'CAR.BODY.SEDAN'
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
$
TYPE = REPORT,
COLUMN = BODYTYPE,
JUSTIFY = RIGHT,
$
TYPE = SUBFOOT,
JUSTIFY = RIGHT,
HEADALIGN = BODY,
$
TYPE = SUBFOOT,
JUSTIFY = RIGHT,
HEADALIGN = BODY,
$
ENDSTYLE
END
WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF In Focus since 2007
Posts: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013
DEFINE FILE IBISAMP/CAR
SPORTSCARS/I5=IF SEATS EQ 2 THEN 1 ELSE 0;
END
TABLE FILE IBISAMP/CAR
SUM SEATS RETAIL_COST SPORTSCARS NOPRINT BY COUNTRY BY CAR
ON COUNTRY RECAP thing/I5=SUM.SPORTSCARS;
ON COUNTRY SUBFOOT
"<+0> <+0>sports: <thing<TOT.RETAIL_COST"
ON TABLE SET STYLE *
TYPE=REPORT,HEADALIGN=BODY,$
TYPE=SUBFOOT,ITEM=2,JUSTIFY=RIGHT,STYLE=ITALIC,$
TYPE=SUBFOOT,ITEM=3, JUSTIFY=RIGHT,STYLE=ITALIC,$
TYPE=SUBFOOT,ITEM=4, JUSTIFY=RIGHT,$
END
In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003
Thanks Susannah, I tried RECAP. It gives me the value I want but does not place it where I need it. Placing the value in a subfooter puts it a line below the subtotals. Client does not like that, they want it aligned with the rest of the subtotals.