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
Across Avg
 Login/Join
 
Platinum Member
posted
I'm stuck getting an avg for an across ROW-Total. Is this possible? I just need an average not a total.

 TABLE FILE VER2
SUM 
     SCORE NOPRINT
BY MARKET_TEAM
BY FULLNAME
ACROSS LNUM NOPRINT
ACROSS SCOREB AS 'SCORES'
  
HEADING
"<Group "
FOOTING
""
WHERE Group EQ '&GROUP';
ON TABLE SET PAGE-NUM OFF 
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT EXL2K
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
     UNITS=IN,
     SQUEEZE=ON,
     ORIENTATION=PORTRAIT,
$
TYPE=REPORT,
     GRID=OFF,
     FONT='ARIAL',
     SIZE=9,
     RIGHTGAP=0.125000,
$
TYPE=DATA,
     BACKCOLOR=RGB(210 210 210),
$
TYPE=DATA,
     COLUMN=ROWTOTAL(*),
     STYLE=BOLD,
$
TYPE=TITLE,
     SIZE=9,
     COLOR='WHITE',
     BACKCOLOR=RGB(0 128 255),
     STYLE=BOLD,
$
TYPE=TABHEADING,
     SIZE=14,
     COLOR='NAVY',
     STYLE=BOLD,
$
TYPE=TABFOOTING,
     SIZE=14,
     COLOR='NAVY',
     STYLE=BOLD,
$
TYPE=HEADING,
     SIZE=14,
     COLOR='NAVY',
     STYLE=BOLD,
$
TYPE=FOOTING,
     SIZE=14,
     COLOR='NAVY',
     STYLE=BOLD,
$
TYPE=SUBHEAD,
     SIZE=10,
     STYLE=BOLD,
$
TYPE=SUBFOOT,
     SIZE=10,
     STYLE=BOLD,
$
TYPE=SUBTOTAL,
     STYLE=BOLD,
$
TYPE=ACROSSVALUE,
     SIZE=9,
     COLOR='WHITE',
     BACKCOLOR=RGB(0 128 255),
$
TYPE=ACROSSTITLE,
     SIZE=9,
     COLOR='WHITE',
     BACKCOLOR=RGB(0 128 255),
     STYLE=BOLD,
$
TYPE=GRANDTOTAL,
     STYLE=BOLD,
$
ENDSTYLE
END
 


WebFocus 7.7.02 WinXP
 
Posts: 236 | Registered: May 12, 2006Report This Post
Virtuoso
posted Hide Post
What is your average summed field?

can you create an average value in a normal view (not across)




Frank

prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7

 
Posts: 2387 | Location: Amsterdam, the Netherlands | Registered: December 03, 2006Report This Post
Platinum Member
posted Hide Post
The average will be an average SCORE for each person or field FULLNAME. The original data as a score as a separate record for each person. So, I created this across query, I think with your help, thanks by the way. Now the score for each person goes across which we want. However, I want to add a final column "Avg Score" at the end. The ROW-Total function sums the data across. I use the Studio Developer 7.6.1. Is there an option that I can make the ROW-TOTAL Avgerage the score instead of sum? Thanks, Joe


WebFocus 7.7.02 WinXP
 
Posts: 236 | Registered: May 12, 2006Report This Post
Expert
posted Hide Post
short answer: nope
long answer: double verbs
several ways to do this, here's one:

TABLE FILE VER2
SUM AVE.SCORE NOPRINT
BY MARKET_TEAM
BY FULLNAME
SUM SCORE
BY MARKET_TEAM
BY FULLNAME
ACROSS LNUM
COMPUTE TOT/D12=C1;

END
-RUN
here it is on the car file;
remember the average will be whacky b/c we're not averaging at the granular level. but you'll do that, right?
"C1" is a column reference, it refers to the first column of data, not the first column of BY fields, but the first column of data.
In this case its AVE.SALES which we have cleverly NOPRINTed...


TABLE FILE CAR
SUM AVE.SALES NOPRINT BY COUNTRY
SUM SALES BY COUNTRY ACROSS CAR
COMPUTE TOT/D8=C1;
END




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
Platinum Member
posted Hide Post
Thanks Sue. This seemed to work. The data are stickly scores for an individual. A person can have up to six scores. I'm not weighting these scores just simple average. I check some of the avg and they seemed to match. Would this be safe to use? Thanks, Joe


WebFocus 7.7.02 WinXP
 
Posts: 236 | Registered: May 12, 2006Report This Post
Expert
posted Hide Post
yes joe
safe to use, as long as you are calculating the averages from source data that exists at the appropriate granularity.
if you're reading a flat file,
and if there is 1 record per MARKET, NAME, LINENUM, then you're good to go.
-s.




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
Platinum Member
posted Hide Post
[SOLVED] Thanks!


WebFocus 7.7.02 WinXP
 
Posts: 236 | Registered: May 12, 2006Report This Post
Virtuoso
posted Hide Post
Joe

if you open the first initial message you can change the subject.

please add [solved] there!




Frank

prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7

 
Posts: 2387 | Location: Amsterdam, the Netherlands | Registered: December 03, 2006Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic


Copyright © 1996-2020 Information Builders