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 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
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, 2004
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.
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, 2004
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, 2005
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, 2003