Focal Point Banner


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.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Computes Across Columns - GUI vs FOCUS

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Computes Across Columns - GUI vs FOCUS
 Login/Join
 
Gold member
posted
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
 
Posts: 52 | Registered: May 13, 2009Report This Post
Expert
posted Hide Post
In Dev Studio Report Painter:

Report > Output > Check "Show Row Totals" checkbox


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
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Platinum Member
posted Hide Post
quote:
Report > Output > Check "Show Row Totals" checkbox



And that's intuitive ??


Regards,
Dave

http://www.daveayers.com

WebFocus/Maintain 7.6.4-8
on Win2000 and 2003 Server
 
Posts: 165 | Location: Detroit Metro | Registered: September 17, 2003Report This Post
Expert
posted Hide Post
Never said it was Smiler 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
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Gold member
posted Hide Post
quote:
Report > Output > Check "Show Row Totals" checkbox


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';

########

If I try to change the COMPUTE from a SUM to an ACROSS I get an error and occasionally this even blows up DEV Studio.

I can manually move this down under the ACROSS and it gives me the result I want. If I then go back into the GUI and edit the compute the compute popup displays with the title . No reference to an ACROSS COMPUTE anywhere in the GUI.

Think I am starting to know come over to your way of thinking Francis and may just build these out all in FOCUS language......at least until the GUI is either better documented or more intuitive Smiler

Thanks for the help,
Bob


WebFOCUS 7.6.8
WebFOCUS Client and Server running on RedHat Linux, Developer Studio on Windows XP
All output formats
 
Posts: 52 | Registered: May 13, 2009Report This Post
Expert
posted Hide Post
Bob,

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
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Computes Across Columns - GUI vs FOCUS

Copyright © 1996-2020 Information Builders