Focal Point
[CLOSED] Recompute on TOT function

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

May 21, 2018, 08:28 AM
Chaudhary
[CLOSED] Recompute on TOT function
HI All,

I am calculating pct sales and formula to calculate pct sale is car sale/ all cars sale , and i need to show Totol sales and total % of sales , but when i used recompute it gives wrong value of pct total . can we calculate the total by using recompute or we need to use recap only ?


 TABLE FILE CAR
SUM
CAR.BODY.SALES
     COMPUTE salepct/D12.2% = 100*(CAR.BODY.SALES/TOT.CAR.BODY.SALES);
BY  CAR.ORIGIN.COUNTRY
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE RECOMPUTE AS 'Total'
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLEMBEDIMG ON
ON TABLE SET AUTOFIT OFF
ON TABLE SET HTMLCSS ON

ON TABLE SET STYLE *
     INCLUDE = IBFS:/EDA/EDASERVE/_EDAHOME/ETC/warm.sty,
$
ENDSTYLE
END

This message has been edited. Last edited by: FP Mod Chuck,


WF Production :- WF:8.0.0.4, 8.1.05 App-studio/Developer Studio(8.1.x) ,
8.2.0.1M , 8.2.0.2 (App-Studio8.2.x),
InfoAssist/+, InfoDiscovery
Output format:-AHTML, PDF, Excel, HTML
Platform:-Windows 7, 8,10
May 21, 2018, 09:22 AM
BabakNYC
If all you want to see is 100% why not just use
  ON TABLE COLUMN-TOTAL



WebFOCUS 8206, Unix, Windows
May 21, 2018, 09:40 AM
Chaudhary
quote:
Originally posted by BabakNYC:
If all you want to see is 100% why not just use
  ON TABLE COLUMN-TOTAL


I have other computed fields in the reports so i cant use


WF Production :- WF:8.0.0.4, 8.1.05 App-studio/Developer Studio(8.1.x) ,
8.2.0.1M , 8.2.0.2 (App-Studio8.2.x),
InfoAssist/+, InfoDiscovery
Output format:-AHTML, PDF, Excel, HTML
Platform:-Windows 7, 8,10