I can't seem to translate my beginners programming skills of JAVA into WEBFOCUS Code. Translating FINANCES MATURITY SCHEDULE into CAR database.
I need to represent data in quarters. I need the numbers to show in terms of sales met in contrast to annual target, and incorporate annual trend.
Example: Last year sold 500 Cars of Model A. last YR Q1 Q2 Q3 Q4 TOTAL Car A 200 50 75 175 500
Annual target with 10% increase in sales. Forecast would be Current YR BALANCE Q1 Q2 Q3 Q4 Car A 550 330 275 194 0
Its simply subtracting from last year total, the total sales for each quarter CUMULITIVE and then adding 10% of that sale.
The difference is mine would go over to multiple years and by quarters, till BALANCE Is zero for multiple models.
MATURITY is by date, so everything that matures in a quarter will be the total for that quarter.
Will appreciate any help you can provide.This message has been edited. Last edited by: FP Mod Chuck,
WebFOCUS 8 Windows, All Outputs
March 17, 2017, 04:01 PM
susannah
The CAR file doesn't have a date in it , so that's gonna hurt you right off the bat. try the GGAALES file, course the dates are in the 1990's, so that might freak you out a bit. Start with this, and then tell me what it is you want to do. SET ASNAMES = ON DEFINE FILE GGSALES YEAR/YY = DATE; MONTH/M = DATE; QUARTER/Q = DATE ; END TABLE FILE GGSALES SUM DOLLARS/D20M AS TOTDOLLARS BY YEAR SUM DOLLARS/D20M AND COMPUTE NEXT_DOLLARS/D20M = DOLLARS * 1.10 ; AND COMPUTE CUM_DOLLARS/D20M = IF YEAR NE LAST YEAR THEN DOLLARS ELSE DOLLARS + LAST DOLLARS; BY YEAR BY QUARTER IF YEAR EQ 1997 ENDThis message has been edited. Last edited by: susannah,
In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID