Focal Point
factor prefix/operator/operation

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/3641041551

February 20, 2006, 02:49 AM
Motiejus
factor prefix/operator/operation
Hi,

I have one quite interesting requirement.

There is a SUM. prefix for suming values.

Is there in WebFOCUS prefix or statement that will multiply the values?


Thanks,
Motiejus
February 20, 2006, 10:38 AM
<JG>
If your data is coming in in the correct sort order then a COMPUTE will do the job.

TABLE FILE CAR
SUM SEATS
BY COUNTRY
BY MODEL
ON TABLE HOLD
END
-RUN
TABLE FILE HOLD
SUM
COMPUTE FSEATS/I9= IF COUNTRY NE LAST COUNTRY THEN SEATS ELSE FSEATS * SEATS;
BY COUNTRY
END