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     Prefix operators with ROW-TOTAL

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Prefix operators with ROW-TOTAL
 Login/Join
 
Silver Member
posted
Does anyone know if there's a way I can apply a prefix operator (specifically 'AVE', i.e. average) to a specific component of a ROW-TOTAL?

I have a BY field and an ACROSS field, the ACROSS spans two COMPUTE fields, one COMPUTE field sums values while the other simply displays a predetermined value (value stored in the database is an number which is an average) therefore the first component of the ROW-TOTAL needs to be sum while the other needs to be an average.


WebFocus Reporting 7.1.1 Windows
 
Posts: 34 | Registered: November 22, 2005Report This Post
Gold member
posted Hide Post
there is a new feature coming out that will do SUMMARIZATIONs on ACROSS fields, but it isn't ready right now. Also, it would have to be tweaked to do your AVE anyway. So, here is what I recommend.
Let's say you had the code
TABLE FILE CAR
SUM COMPUTE TOTAL = RCOST + DCOST;
COMPUTE NUMBER = SALES;
BY COUNTRY
BY CAR
ACROSS BODYTYPE
END
To get out the totals the easiest way, USE sortgroup in the PAINTER, to make your code look like:
TABLE FILE CAR
=* c1 c2
SUM RCOST NOPRINT DCOST NOPRINT
-* C3
COMPUTE COL1 = RCOST + DCOST; NOPRINT
-* C4
COMPUTE COL2 = AVE.SALES; NOPRINT
BY COUNTRY
BY CAR
SUM COMPUTE TOTAL = RCOST + DCOST;
NUMBER = SALES;

BY COUNTRY BY CAR
ACROSS BODYTYPE
COMPUTE TOTAL1 = C3; AS 'TOTAL'
TOTAL2 = C4;
END

That should give you what you want.
You might look at:
http://techsupport.informationbuilders.com/sps/20442045.html and
http://techsupport.informationbuilders.com/sps/20262069.html

on the techsupport web site.


WEFOCUS - All releases starting at 4.3.6
MF FOCUS -- All releases starting at 3.8.68
OS/Platfor _ Predominately Z/OS, but all others as swell
Expected Output Format -- *
 
Posts: 60 | Location: 2 penn | Registered: May 22, 2003Report This Post
Silver Member
posted Hide Post
Great, thanks for the information! The need to satisfy this requirement has diminished however if it returns I will certainly try this and report back with what I find. Thanks again!


WebFocus Reporting 7.1.1 Windows
 
Posts: 34 | Registered: November 22, 2005Report 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     Prefix operators with ROW-TOTAL

Copyright © 1996-2020 Information Builders