IB - Developer Center    Forums  Hop To Forum Categories  FOCUS/WebFOCUS    [SOLVED] Column-Total
Go
New
Search
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
Silver 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.4.1(Production and Test region)
Oracle backend (10g)and Windows Frontend.
HTML,CSV,PDF,PF,Excel
 
Posts: 39 | Registered: June 07, 2007Reply With QuoteEdit or Delete MessageReport This Post
Master
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 764 on WinXP (sp2) - IE7.
- Also available are versions from 534 up to 766 on Windows (XP/2000/2003EE)
 
Posts: 518 | Location: Netherlands | Registered: September 25, 2007Reply With QuoteEdit or Delete MessageReport This Post
Silver 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.4.1(Production and Test region)
Oracle backend (10g)and Windows Frontend.
HTML,CSV,PDF,PF,Excel
 
Posts: 39 | Registered: June 07, 2007Reply With QuoteEdit or Delete MessageReport This Post
Virtuoso
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.6.5 with 7.6.6 WFRS; AIX 5.2; WebSphere 6.1.0.15
Dev: WF 7.6.5 with 7.6.6 WFRS; AIX 5.3; WebSphere 6.1.0.15
Primarily self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable
 
Posts: 1524 | Location: BNSF: Fort Worth, TX | Registered: April 05, 2006Reply With QuoteEdit or Delete MessageReport 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 5.3.2 AIX, NT, AS/400, Focus AS/400, AIX, Oracle, JDE, DB2, Lotus Notes
 
Posts: 524 | Location: TX | Registered: September 25, 2007Reply With QuoteEdit or Delete MessageReport This Post
Silver 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.4.1(Production and Test region)
Oracle backend (10g)and Windows Frontend.
HTML,CSV,PDF,PF,Excel
 
Posts: 39 | Registered: June 07, 2007Reply With QuoteEdit or Delete MessageReport This Post
JG
Master
Posted Hide Post
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)
 
Posts: 930 | Registered: February 24, 2005Reply With QuoteEdit or Delete MessageReport This Post
 Previous Topic | Next Topic powered by eve community  
 

IB - Developer Center    Forums  Hop To Forum Categories  FOCUS/WebFOCUS    [SOLVED] Column-Total

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