|
Go
![]() |
New
![]() |
Search
![]() |
Notify
![]() |
Tools
![]() |
Reply
![]() |
|
|
Silver Member |
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 |
||
|
|
Master |
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
|
|||||
|
|
Silver Member |
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 |
|||
|
|
Virtuoso |
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. 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 |
|||
|
|
Master |
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 Pat WF 5.3.2 AIX, NT, AS/400, Focus AS/400, AIX, Oracle, JDE, DB2, Lotus Notes |
|||
|
|
Silver Member |
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 |
|||
|
|
Master |
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) |
|||
|
| Previous Topic | Next Topic | powered by eve community |
| Please Wait. Your request is being processed... |
|

