Focal Point
[CLOSED] Newbie Question: Virtual Field for count

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/1537039626

December 07, 2012, 11:21 AM
Daniel G
[CLOSED] Newbie Question: Virtual Field for count
In a report I have two columns that mean the same thing just labeled differently. Example:

Col 1: TRANSFER
Col 2: Transfer In

How would I make virtual field to keep a sum of when one of these col are encountered? I am using this in an across on my report. Thanks for the help.

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


In Focus since 2012
WebFOCUS 8.0.07
Windows, All Outputs
December 07, 2012, 02:57 PM
Jump_faster
I am not sure if i understand your question correctly; from what i understand, you can try this code
 
DEFINE FILE .......
Col/I1 = IF Transfer_Field EQ 'TRANSFER' THEN 1 ELSE IF TRansfer_Field EQ 'Transfer In' In THEN 1 ELSE 0


So on that way if you keep tack of how many time those label were uses.

To find out the total number of time those fields were use you can simply use
 TABLE FILE....
PRINT....
ON TABLE COLUMN-TOTAL AS 'Sum of transfer Field use' 



WebFOCUS 7.7. Windows Server 2008. All Outputs.

WEBFOCUS 7.6.11. Windows Server 2003. All Outputs.
December 07, 2012, 04:09 PM
Daniel G
Thank you I will have to try this.


In Focus since 2012
WebFOCUS 8.0.07
Windows, All Outputs