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] Help creating subtotal with a computed alphanumeric field

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Help creating subtotal with a computed alphanumeric field
 Login/Join
 
Member
posted
I have the following output from a procedure I am working on:
STATE WORK_DONE TOTAL_TM COUNT AVE_TM
South Dakota Light 26:21 18 01:27
Heavy 28:04 1 28:04
Nebraska Light 63:23 41 01:32
Medium 62:39 1 62:39
Heavy 35:55 1 35:55

This is my code for the table:

DEFINE FUNCTION TMFM (TOTMIN/I10)
-* CALCULATE HOURS
HR/I2 = TOTMIN/60;

-* CALCULATE MINUTES
MIN/I2 = TOTMIN -(HR*60) ;

-* FORMAT TO HH:MM
TMFM/A5 = EDIT(HR)||':'||EDIT(MIN);

END

TABLE FILE RESULTS
SUM
COMPUTE TOTAL_TM/A5 = TMFM(SUM.TOTAL_MIN);
CNT.TOTAL_MIN
COMPUTE AVE_TM/A5 = TMFM(AVE.TOTAL_MIN);
BY STATE
BY WORK_DONE

END

Now I want to do a subtotal for each TOTAL_TM, COUNT, AVE_TM.
If I do a 'ON STATE RECOMPUTE', all I see is the Total count for each state. How do I go about re-adding all the 'COMPUTE' for the alpha numeric field.

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


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 3 | Registered: February 10, 2011Report This Post
Expert
posted Hide Post
Check out SUBTOTAL, SUB-TOTAL, COLUMN-TOTAL, ROW-TOTAL, etc. And note that numeric fields are required for totaling. F! (Help) is a good place to start while waiting for some WebFOCUS training.
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Member
posted Hide Post
quote:
Originally posted by Doug:
Check out SUBTOTAL, SUB-TOTAL, COLUMN-TOTAL, ROW-TOTAL, etc. And note that numeric fields are required for totaling. F! (Help) is a good place to start while waiting for some WebFOCUS training.


This is a non-answer.


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 3 | Registered: February 10, 2011Report This Post
Virtuoso
posted Hide Post
use
ON COUNTRY SUMMARIZE *

or
ON COUNTRY RECOMPUTE *


(Appears in 7702 new features -- but works at least as far back as 7.6.9)
 
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005Report This Post
Member
posted Hide Post
j.gross,
That worked! Thanks a bunch.


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 3 | Registered: February 10, 2011Report 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] Help creating subtotal with a computed alphanumeric field

Copyright © 1996-2020 Information Builders