Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     FORMAT EXL2K FORMULA totalling problem

Read-Only Read-Only Topic
Go
Search
Notify
Tools
FORMAT EXL2K FORMULA totalling problem
 Login/Join
 
Expert
posted
ON TABLE COLUMN-TOTAL or SUBTOTAL or any variant produces the wrong results in excel formula output. The results are the same as ON TABLE SUMMARIZE, so a column that is produced by a formula cannot be subtotaled or totalled, it can only be recomputed...which causes real problems when the computation in aggregate produces a wrong answer (price * quantity, for ex).

Anybody got a work around?
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report This Post
Guru
posted Hide Post
Will an ON TABLE RECAP work?
Use an ON TABLE SUBFOOT to position things afterward.
 
Posts: 346 | Location: Melbourne Australia | Registered: April 15, 2003Report This Post
Member
posted Hide Post
Hi,
I am facing a similar problem.
Actually, the 2 version, v532 and v716 work differently. ( we recently upgraded to v716)
Here is a sample fex.
--------------------------------------------
TABLE FILE CAR
SUM
DEALER_COST
RETAIL_COST
COMPUTE DFN_PCT/F12.2%= IF DEALER_COST EQ 0 THEN 0 ELSE RETAIL_COST / DEALER_COST; AS 'AFLD'

BY COUNTRY SUBTOTAL
BY CAR
BY MODEL

ON TABLE RECOMPUTE AS "TOTAL"
ON TABLE PCHOLD FORMAT EXL2K FORMULA
END
--------------------------------------------

v532 Report Looks Like
COUNTRY CAR MODEL DEALER_COST RETAIL_COST AFLD
ENGLAND JAGUAR V12XKE AUTO 7,427 8,878 119.54%
XJ12L AUTO 11,194 13,491 120.52%
JENSEN INTERCEPTOR III 14,940 17,850 119.48%
TRIUMPH TR7 4,292 5,100 118.83%
*TOTAL COUNTRY ENGLAND 37,853 45,319 119.72%
----------------------------------
v716 Report Looks Like
COUNTRY CAR MODEL DEALER_COST RETAIL_COST AFLD
ENGLAND JAGUAR V12XKE AUTO 7,427 8,878 1.20%
ENGLAND JAGUAR XJ12L AUTO 11,194 13,491 1.21%
ENGLAND JENSEN INTERCEPTOR III 14,940 17,850 1.19%
ENGLAND TRIUMPH TR7 4,292 5,100 1.19%
*TOTAL COUNTRY ENGLAND 37,853 45,319 4.78%
-----------------------------

Any idea how to make them consistent ?


Saurabh Palkar
 
Posts: 18 | Registered: April 20, 2007Report This Post
Master
posted Hide Post
Change your COMPUTE to:
COMPUTE DFN_PCT/F12.2%= IF DEALER_COST EQ 0 THEN 0 ELSE 100*(RETAIL_COST / DEALER_COST); AS 'AFLD'

That will get your detail correct.

But as to why the RECOMPUTE is not working, looks like a bug to me. Also, if you look at the formula in the spreadsheet for "*TOTAL COUNTRY ENGLAND", it is doing a SUM and not a RECOMPUTE.


In FOCUS since 1985. Prod WF 8.0.08 (z90/Suse Linux) DB (Oracle 11g), Self Serv, Report Caster, WebServer Intel/Linux.
 
Posts: 975 | Location: Oklahoma City | Registered: October 27, 2006Report This Post
Expert
posted Hide Post
It's a bug and I abandoned using EXL2K Formula.

Cheers if it works in releases after v5.3.2.

And where have you been lately?


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     FORMAT EXL2K FORMULA totalling problem

Copyright © 1996-2020 Information Builders