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.



Read-Only Read-Only Topic
Go
Search
Notify
Tools
AVE.FIELD
 Login/Join
 
Platinum Member
posted
I am trying to get 2 averages below, however the AVE.field isn't giving me the correct numbers. It's way too low to be accurate. I have checked this in excel, so I know what the correct numbers should be.

So, in troubleshooting, I took off the AVE operator in order to just get the SUM, and the number is correct.

What i don't understand is how it could get the correct SUM of all 38 fields, yet it can't get the correct average.

Just fyi, the correct average for the rprawrd_paid_amount is 7,635.99 from a sum of (290167.62). The report below is yeilding 1,676.09. This is a rather large discrepency.

  
TABLE FILE STUDENT_POP
SUM
     CNT.DST.STUDENT_PIDM AS 'COUNT,DISTINCT,STUDENT_PIDM'
     AVE.RPRAWRD_PAID_AMT/D12.2CM AS 'AVG. RPRAWRD_PAID_AMT'
     AVE.RNVAND1_UNMET_NEED/D12.2CM AS 'AVG. UNMET_NEED'
WHERE RPRAWRD_AIDY_CODE EQ '&L_AID_YEAR_1';
WHERE RORENRL_TERM_CODE EQ '&TERM_CODE_A1';
WHERE RORENRL_FINAID_ADJ_HR GE 12;
WHERE RPRAWRD_PAID_AMT GT 0;
WHERE RPRAWRD_AWST_CODE EQ 'ACPT';
WHERE RNVAND1_AIDY_CODE EQ '&L_AID_YEAR_1';
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT EXL2K FORMULA
END


-Brian

Webfocus v7.6.1 on Windows XP
 
Posts: 108 | Registered: June 19, 2006Report This Post
Expert
posted Hide Post
Seems to work for me:

TABLE FILE CAR
SUM
AVE.SALES
PRINT
CNT.SALES
SALES
ON TABLE SUBTOTAL
END

The total, 208420, divided by the count, 18, gives you 11578.8888889. The Average is reported as 11578.

Have you tried creating the Excel spreadsheet without the FORMULA option? I've had issues with it.


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
Expert
posted Hide Post
See Tech Support case 12722036.


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
Virtuoso
posted Hide Post
Your average may be on the disbursement values of the data. This looks suspiciously like student financial aid. Are you BANNER school. Since an award period may have two disbursements depending on where you are pulling from, you may be getting the average of the disbursements, not the average of the total.
I work with SungardSCT Plus financial aid data all the time.

You may have to compute the average from totals and the student count.


Leah
 
Posts: 1317 | Location: Council Bluffs, IA | Registered: May 24, 2004Report This Post
Platinum Member
posted Hide Post
Leah, you might be right. It's hard to know how exactly it's getting that low number, but it could be based on a disbursment instead of the sum of all disbursments.

So, I decided to get my avgs via a compute. And yes, we are a banner school. Been on banner since 1998.

Thanks Francis, but I can't see tech support cases.

Brian


-Brian

Webfocus v7.6.1 on Windows XP
 
Posts: 108 | Registered: June 19, 2006Report This Post
Virtuoso
posted Hide Post
AVE gives the average of all of the fields being returned to the request. You could sum by the student id and place in a hold file for your report. As they say, more than one way to skin a cat.

You may find the average may still be a bit different than what you are expecting.


Leah
 
Posts: 1317 | Location: Council Bluffs, IA | Registered: May 24, 2004Report This Post
Virtuoso
posted Hide Post
The average report by AVE. will be the sum divided by the number of instances (not by the count yielded by the CNT.DST. operator).

To see what I mean, try
TABLE ...
SUM
CNT.DST.STUDENT_PIDM
CNT.RNVAND1_UNMET_NEED
SUM.RNVAND1_UNMET_NEED
AVE.RNVAND1_UNMET_NEED
AND COMPUTE
AVG1=SUM.RNVAND1_UNMET_NEED / CNT.RNVAND1_UNMET_NEED;
AVG2=SUM.RNVAND1_UNMET_NEED / CNT.DST.STUDENT_PIDM ;

This message has been edited. Last edited by: j.gross,


- Jack Gross
WF through 8.1.05
 
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005Report This Post
Expert
posted Hide Post
Leah's answer makes good sense to me, Brian, and i don't even work in a school. but it would seem that your source data is still too disagregate, too granular, to give you the average you want at the level you need. so an aggregation first, hold it, and then an average, a good thing for all 'Pointers' to remember.




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


Copyright © 1996-2020 Information Builders