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.
1) I need display column totals for 6 columns out of 12, because the remaining 6 are percentages. And I would like to add calculated column total for 3 other columns. For e.g if I have
1 2 3 4 5 6 7 8 9 10
I want column totals for 1, 2, 4 and 5 columns and calculated columun totals for 3 (column1/column2 * 100), 6, and 7.
2) I need to display --The top 10 customers' sales totals (which is question 1 given above) --The remaining customers' sales totals and --The total customers (top 10 + remaining customers) sales totals
For e.g if I have 50 customers in total, I need to display totals for top 10, remaining 40 and total(i.e. 50) customers sales.
TABLE FILE TEST SUM
CURRENTSALES/D12C AS 'Sales' CURRENTBP/D12C AS 'BP'
RANKED AS 'RANK' BY TOTAL HIGHEST 10 CURRENTSALES NOPRINT BY NAME AS 'Customer' ON TABLE COLUMN-TOTAL AS 'TOTAL' END
I tried "others" but its adding total as a subfoot which is not exactly what I am looking for. I would like this to be a custom row right above the COLUMN TOTAL ROW.
Any sample code would be of great help.
KKThis message has been edited. Last edited by: KK,
Test - Webfocus 7.6.7 Prod - Webfocus 7.6.7 Win2003 Sql Server 2000 and 2008
for item 1, if you have those formulas (formulae?)as computed columns, you can just use ON TABLE RECOMPUTE and you get exactly what you're asking for. Your other item is also in a separate post so I'll let it be adressed there
Regards,
Darin
In FOCUS since 1991 WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex WF Client: 77 on Linux w/Tomcat
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007
To get the 'others' besides the top use the 'others' feature in 6.6 (i believe).
As for tallying particular columns - oyu can use that inn a subfoot by using left caret ct. fieldname follwed by right caret. to get the calculated columns use recompute - it works like a charm. good luck!
PLUS OTHER creates one more row of all records that do not fall into the explicit rows displayed Works with RANKED, IN-GROUPS-OF, IN-RANGES-OF (not with TILES)
Hope this helps.
Cheers,
Kerry
Kerry Zhan Focal Point Moderator Information Builders, Inc.
Posts: 1948 | Location: New York | Registered: November 16, 2004
that "and others" is a great new functionality. In the former version I did this by first putting all the data with the rank field into a hold file and than define some fields bases on the ranking
DEFINE FILE HOLD NEWRANK/I4=IF RANK LE 10 THEN RANK ELSE 9999; END
TABLE FILE HOLD SUM XXX BY NEWRANK ON TABLE COLUMN-TOTAL END
for the customer name you need to create a dummy name that holds the real name if the rank is less than 11 and else is something like 'others'.
Frank
prod: WF 7.6.10 platform Windows, databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7 test: WF 7.6.10 on the same platform and databases,IE7
Posts: 2387 | Location: Amsterdam, the Netherlands | Registered: December 03, 2006
This issue has not been resolved yet. I have 5 columns sales amount, stdcost, gp%, bp amount, bp gp%.
If I use OTHER, it gives other totals of all the columns which I don't want. I want OTHER only for the sales amount. And gp% to be calculated based on the other total sales amount and other total std cost.
Please advise.
Thank you.
Test - Webfocus 7.6.7 Prod - Webfocus 7.6.7 Win2003 Sql Server 2000 and 2008