Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Recompute on TOT function
Go
New
Search
Notify
Tools
Reply
  
[CLOSED] Recompute on TOT function
 Login/Join
 
Platinum Member
posted
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
 
Posts: 186 | Location: Infobuild India | Registered: August 28, 2015Reply With QuoteReport This Post
Virtuoso
posted Hide Post
If all you want to see is 100% why not just use
  ON TABLE COLUMN-TOTAL


WebFOCUS 8206, Unix, Windows
 
Posts: 1853 | Location: New York City | Registered: December 30, 2015Reply With QuoteReport This Post
Platinum Member
posted Hide Post
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
 
Posts: 186 | Location: Infobuild India | Registered: August 28, 2015Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Recompute on TOT function

Copyright © 1996-2018 Information Builders, leaders in enterprise business intelligence.