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     [SOLVED] Column-Total

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Column-Total
 Login/Join
 
Gold member
posted
Hi,
I have a field with positive and negative values.I have to just do column-total of its absolute values. Is it feasible with Webfocus?
For example,there is a column called Price as shown below.

Price
7
-9
3
-1
Column-total has to be 20(It should not be 0)

This message has been edited. Last edited by: Kerry,


WebFOCUS 7.7.02(Production)
WebFOCUS 7.7.02(Test region)
Oracle backend (10g)and Windows Frontend.
HTML,PDF,EXL2K,FLEX,AHTML
 
Posts: 68 | Registered: June 07, 2007Report This Post
Virtuoso
posted Hide Post
I would create a defined field that holds the absolute value of the database field, and sum that field in stead of the db field.


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
 
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007Report This Post
Gold member
posted Hide Post
Hi,
I want to show the summed up value of absolute values at the bottom of the db field. Is it possible to show it ?


WebFOCUS 7.7.02(Production)
WebFOCUS 7.7.02(Test region)
Oracle backend (10g)and Windows Frontend.
HTML,PDF,EXL2K,FLEX,AHTML
 
Posts: 68 | Registered: June 07, 2007Report This Post
Expert
posted Hide Post
As GamP said, do a DEFINE using the ABS function to get the absolute value for your data base field. Then sum that field and get a column-total of it.

Are you wanting to sum the db field as well?

BTW, there is no WebFOCUS 7.4.1 release. You might want to check your signature. I suspect it is 7.1.4 but could be 7.6.1. Confused


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
 
Posts: 2723 | Location: Ann Arbor, MI | Registered: April 05, 2006Report This Post
Master
posted Hide Post
If you are wanting to show the negatives in your report but only the ABS of the Total use RECAP with SUBFOOT. It would be something like:
TABLE FILE MYFILE
SUM AMT
COMPUTE ABS_AMT/D12=ABS(AMT); NOPRINT
ON TABLE RECAP GT/D12=ABS(TOT.ABS_AMT);
ON TABLE SUBFOOT
"Absolute Total END


Pat
WF 7.6.8, AIX, AS400, NT
AS400 FOCUS, AIX FOCUS,
Oracle, DB2, JDE, Lotus Notes
 
Posts: 755 | Location: TX | Registered: September 25, 2007Report This Post
Gold member
posted Hide Post
Hi,
I am not able to get column-total in the subfoot right after the report output in PDF format since I give pagenum at the footing bottom. Is there any way to introduce table border in the subfoot also in PDF format?

For example,this is my sample output how it appears in my PDF format
Country ITEM Price
India A $5
US B $10
Arab C $15



1
$30
===============================================
But I want it to be as follows

Country ITEM Price
India A $5
US B $10
Arab C $15
$30


1


WebFOCUS 7.7.02(Production)
WebFOCUS 7.7.02(Test region)
Oracle backend (10g)and Windows Frontend.
HTML,PDF,EXL2K,FLEX,AHTML
 
Posts: 68 | Registered: June 07, 2007Report This Post
<JG>
posted
Suji
A FOOTING can have multiple lines

"Absolute Total <GT"
" "
"<PAGENUM"  


(sorry about the edit. I did the same as Pat and forgot the code tags)
 
Report 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     [SOLVED] Column-Total

Copyright © 1996-2020 Information Builders