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.
I'm getting some very exaggerated numbers from the following compute statement. COMPUTE MARGIN_GOAL/P11BM = (PROJECTED_SALES * GM_PERC); AS 'Margin,Goal $'
If I run it in SQL against our iSeries, I get a very small number compared to the number webfocus is showing.
Here's an except from my master file, if it's any help. I figure it may have something to do with this packed decimal value.
As Frank asks. If you are computing, this occurs after an aggregation occurs if any 'by' statements, and if you have joins involdve you could be 'multiplying the data occurances.
Leah
Posts: 1317 | Location: Council Bluffs, IA | Registered: May 24, 2004
Leah's may be right, I think that what could be happening is it's aggregating PROJECTED_SALES, then aggregating GM_PERC, then multiplying. kind of a silly order of operations. If this is true, is there any way to make it do the aggregation on the multiplied value?
my fex is massive (1000 loc), but here's a short excerpt, I hope it gets the point across. TABLE FILE MATRIX_ORDERS_TBL SUM EXT_SALES_DOLLARS/P11BM AS 'Sales,Actual' COMPUTE MARGIN_GOAL/P11BM = (PROJECTED_SALES * GM_PERC); AS 'Margin,Goal $' BY HIGHEST YEARMONTH AS 'Month' yields 40,000,000,000 or so.
Sql: SELECT yearmonth, sum(projected_sales*gm_perc) FROM SQLPROD.MATRIX_ORDERS_TBL where yearmonth = 200709 group by yearmonth;
yields: 200709 5,379,209.191409199This message has been edited. Last edited by: Jason K.,
Prod: Single Windows 2008 Server running Webfocus 7.7.03 Reporting server Web server IIS6/Tomcat, AS400 DB2 database.