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     Computing and displaying AVE of column values

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Computing and displaying AVE of column values
 Login/Join
 
Member
posted
Hello,
I am trying to write a report that is by Long_Title and creates an average of requests, registered, variance. My code is producing the following:

AVE REQS AVE REG AVE VAR LONG_TITLE TERM_CD ……….. REQUESTS REGISTERED VARIANCE
20.00 15.00 5.00 Latin America, 1820-Present* 201002 20.00 15.00 5.00

However I need something like this:

LONG_TITLE TERM_CD ……….. REQUESTS REGISTERED VARIANCE
Latin America, 1820-Present* 201002 20.00 15.00 5.00
Latin America, 1820-Present* 201002 15:00 10:00 5.00
Average 17.50 12.50 5.00

How do I need to change my code?

TABLE FILE SQLOUT
SUM AVE.REQUESTS AS 'AVE REQS' AVE.REGISTERED AS 'AVE REG' AVE.VARIANCE AS 'AVE VAR' BY LONG_TITLE
PRINT
LONG_TITLE
TERM_CD
CRN
SEQ
INSTRUCTOR
SUBJ
CRS_NBR
DIVS_DESC
DEPT_DESC
REQUESTS
REGISTERED
VARIANCE
HEADING
"New College of Florida Course Request System Historical Metrics as of <+0>&DATEtrMDYY <+0> "
" "
FOOTING
""
BY LONG_TITLE NOPRINT
ON LONG_TITLE SUBTOTAL AS ' '
ON TABLE SET PAGE-NUM OFF
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
UNITS=IN,
SQUEEZE=ON,
ORIENTATION=PORTRAIT,


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 11 | Location: Florida | Registered: December 08, 2011Report This Post
Expert
posted Hide Post
you're using 2 verbs, which is fine.
but BOTH of your verbs have the same BY field.
so you might want to take the BY LONG_TITLE off the SUM statement.
then you'll get some meaningful values.
If that works for you, then you might want to put these averages into a heading, instead of taking up so much space in the first 3 cols of your report. would look nice.




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report 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     Computing and displaying AVE of column values

Copyright © 1996-2020 Information Builders