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 created a simple focexec to return a year over year variance. The code looks like the below:
TABLE FILE ASSET_FACT_RDWSYS SUM ADM_TOT_UNITS_IN_SVC BY PROGRAM_SHORT_DESC ACROSS CALENDAR_YEAR_NBR COMPUTE VAR/D12 = C2-C1; HEADING "" FOOTING "" WHERE CALENDAR_YEAR_NBR EQ 2008 OR 2009;
I am trying to recreate this in the GUI but can't seem to get the Compute to appear as a single column. It is consistently appearing to the right of each across column when I only want it to appear once. In the code it appears to be placing the compute in the SUM rather then under the ACROSS as shown in the code. Is there a way to get this to work in the GUI. I am guessing I may simply not be doing something correctly when creating my COMPUTE.
WebFOCUS 7.6.8 WebFOCUS Client and Server running on RedHat Linux, Developer Studio on Windows XP All output formats
Never said it was If you've read my rants, you would know I am not an advocate for GUI development. My suggestion might be one of a couple of solutions - I just poked around and found the Show Row Totals checkbox - not intuitive at all.
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
I tried this and still have the same result from the GUI. It places the compute under the SUM as shown below (slightly different example using the CAR file:
TABLE FILE CAR SUM COMPUTE DIFF/D12 = C1 - C2; 'CAR.BODY.SALES' BY 'CAR.BODY.BODYTYPE' ACROSS 'CAR.ORIGIN.COUNTRY' HEADING "" FOOTING "" WHERE CAR.ORIGIN.COUNTRY EQ 'ENGLAND' OR 'JAPAN';
Here's an example where the GUI cannot generate an ACROSS Total. This option was added to the language in WebFOCUS v7.6 but it isn't in the GUI yet, they are now at v7.6.10.
This code seems to be OK for the v7.6.5 GUI:
-* File ggsales2.fex
DEFINE FILE GGSALES
SYEAR/YY=DATE;
END
TABLE FILE GGSALES
SUM
'GGSALES.SALES01.DOLLARS'
BY 'GGSALES.SALES01.STCD'
ACROSS 'GGSALES.SALES01.SYEAR' AS ''
COMPUTE
VAR/D12 = C2 - C1;
HEADING
""
FOOTING
""
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE NOTOTAL
ON TABLE SET STYLE *
UNITS=IN,
SQUEEZE=ON,
ORIENTATION=PORTRAIT,
$
TYPE=REPORT,
GRID=OFF,
FONT='ARIAL',
SIZE=9,
COLOR='BLACK',
STYLE=NORMAL,
$
TYPE=TITLE,
STYLE=BOLD,
$
TYPE=ACROSSVALUE,
ACROSS=1,
STYLE=BOLD,
$
TYPE=ACROSSTITLE,
ACROSS=1,
STYLE=BOLD,
$
ENDSTYLE
END
(I can't figure out how to add a Title for the computed field VAR.)
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