I am trying to solve this to print the country name on the same title line. I am sure there is a simple solution to this.
Below is the example code -
DEFINE FILE CAR
DCOST_FRANCE/I9C = IF COUNTRY EQ 'FRANCE' THEN DEALER_COST ELSE 0;
RCOST_FRANCE/I9C = IF COUNTRY EQ 'FRANCE' THEN RETAIL_COST ELSE 0;
END
TABLE FILE CAR
SUM
DCOST_FRANCE AS 'FRANCE, D COST'
RCOST_FRANCE AS 'FRANCE, R COST'
BY HIGHEST TOTAL SALES NOPRINT
BY MODEL
SUM
COMPUTE RATIO/D12% = (DEALER_COST/RETAIL_COST)*100; AS ' '
BY HIGHEST TOTAL SALES NOPRINT
BY MODEL
ACROSS COUNTRY AS ''
ON TABLE SUMMARIZE AS 'TOTAL'
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
INCLUDE = endeflt,
$
ENDSTYLE
END
-EXIT
WEBFOCUS 8105m
Windows, All Outputs