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 attempting to have a subtotal of $ amount for each desg (fund #), but counting only those without a "Y" in the MEMO column. MEMO has a Y or null value.
I tried right-clicking on the SUBTOTAL column in the GUI to add a conditional styling where MEMO does not equal Y, but it didn't work.
I tried changing my code to contain this language:
$
TYPE=SUBTOTAL,
BY=1,
SIZE=8,
WHEN=MEMO NE 'Y',
$
TYPE=SUBTOTAL,
BY=2,
SIZE=8,
WHEN=MEMO NE 'Y',
$
In place of WHEN=MEMO NE 'Y', I also tried...
WHEN=MEMO EQ MISSING, and WHEN=MEMO EQ '',
None of them work and it totals everything, including the records with a "Y" in the MEMO column. I want to keep the value null, but I'm not sure how to get the subtotal to only total the gifts with a null value in MEMO.
You cannot manipulate the amounts in the subtotal using the stylesheet - that is used for styling only.
You cannot manipulate the amounts in the subtotal - the subtotal is an exact sum of the column. People use SUBFOOT to resolve this.
TABLE FILE EMPDATA
SUM
COMPUTE SALARY_NON_WE/D10.2M = IF EMPDATA.EMPDATA.DIV EQ 'WE' THEN 0 ELSE EMPDATA.EMPDATA.SALARY; NOPRINT
BY EMPDATA.EMPDATA.DEPT NOPRINT
BY EMPDATA.EMPDATA.DIV NOPRINT
SUM
EMPDATA.EMPDATA.SALARY
MIN.EMPDATA.EMPDATA.HIREDATE/MDYY
BY EMPDATA.EMPDATA.DEPT NOPRINT
BY EMPDATA.EMPDATA.DIV NOPRINT
BY EMPDATA.EMPDATA.DEPT
BY EMPDATA.EMPDATA.LASTNAME
BY EMPDATA.EMPDATA.FIRSTNAME
BY EMPDATA.EMPDATA.DIV
BY EMPDATA.EMPDATA.TITLE
ON EMPDATA.EMPDATA.DEPT SUBFOOT
"*TOTAL <DEPT <+> <+> <ST.SALARY_NON_WE"
" "
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE NOTOTAL
WHERE ( EMPDATA.EMPDATA.DIV EQ 'NE' ) OR ( EMPDATA.EMPDATA.DIV EQ 'WE' )
ON TABLE SET STYLE *
TYPE=SUBFOOT, HEADALIGN=BODY, $
TYPE=SUBFOOT, ITEM=6, JUSTIFY=RIGHT, $
END
Francis
Give me code, or give me retirement. In FOCUS since 1991
Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
Thanks for your help everyone and for the info about not being able to do manipulation with the Stylesheet! You think I would have figured that out
I appreciate all of the help! It's been a busy week, so I'm just getting around to testing. So far, I was able to get Danny-SRL's code to work with mine. Thanks!!
Case closed!
8009 Windows 7 Excel/HTML/AHTML/PDF
Posts: 34 | Location: San Francisco, CA | Registered: July 25, 2011