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     Column Average value.

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Column Average value.
 Login/Join
 
<rama1971>
posted
Hi,

I am working in WebFOCUS Reports development and in my requirement I need find the column average value for some columns and I need to display like column totals.

So Could you please any one help me out to get this report.

Thanks in advance for your help.

Regards,
Rama
 
Report This Post
Silver Member
posted Hide Post
I suggest you use a COMPUTE to calculate your average:

COMPUTE AVG/D12.2=(C3+C4+C5)/3; AS 'Average'

This will compute the average of the three columns mentioned. Make sure you use ON TABLE RECOMPUTE to have the average correctly shown on your summary line(s)
 
Posts: 44 | Location: New York City | Registered: May 23, 2004Report This Post
<rama1971>
posted
Hi Steve,

Thanks for your reply and here is what I need:

Name c1 c2 c3
_________________________
AAAA 12 05 06
BBBB 05 20 15
CCCC 15 13 09
_________________________
Ave: 16 19 15


I need to calculate average value for column c1, C2, c3 and need to dispaly at bottom like shown above.

Could you please help me out.

Thanaks,
Rama
 
Report This Post
<Grzegorz>
posted
Rama,

You could try something similar to this:

TABLE FILE CAR
SUM SALES
BY COUNTRY
ON TABLE SUBTOTAL AVE. SALES AS 'AVE: '
END

The syntax of using prefix operators in summary lines (SUBTOTAL, RECOMPUTE etc.) is described in the WebFOCUS 5.3 New Features manual
(I have never seen this sytax in the earlier documentation), but it works with some other versions (e.g 5.20).

Hope this helps
Grzegorz
 
Report 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     Column Average value.

Copyright © 1996-2020 Information Builders