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     [CLOSED] Not getting correct totals when cobining totals

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Not getting correct totals when cobining totals
 Login/Join
 
Master
posted
This is a PDF report I created with two different metrics (ED-2BED and OTF).

quote:
AVERAGE
AVERAGE

UNIT
ED-2-BED AVERAGE
AVERAGE Pts. Pts. PTS PTS OTF PATS MINUTES HOURS Pts. OTF Pts. OTF OTF OTF
VOLUME MINUTES HOURS
<3hrs >3hrs
% YES
% NO VOLUME OTF OTF
<3hrs >3hrs % YES % NO

Trauma 5 95.79 1.60 5 0 100 0 9 76.67 1.28 9 0 100 0


Then, I was asked to modify the fex to combine the totals for OTF into the totals for ED-2BED.
I assumed that I could successfully to this with the following code:

quote:

TABLE FILE EDTIMESN
HEADING CENTER
"LOOK AT THOSE NEW FIELDS - MATCH METHOD"
PRINT
-*GOTO NEWDATA
TOTEDBPTS
TOTOTFPTS
P_OTF
P4DURATION
P4DURHRS
P4OTF
P4OTFHRS
-*
COMPUTE ALLPTS/I9 = TOTEDBPTS + TOTOTFPTS;
COMPUTE ALLDUR/I9 = P4DURATION + P4OTF;
COMPUTE ALLDURHRS/I9 = P4DURHRS + P4OTFHRS;
COMPUTE ALLMEET/I9 = IF (ALLDURHRS LE 3) AND (ALLPTS GE 1) THEN 1 ELSE 0;
COMPUTE ALLNMEET/I9 = IF (ALLMEET EQ 0) AND (ALLPTS GE 1) THEN 1 ELSE 0;
-*
BADMRN
-*
BY UNIT
BY EDP
ON TABLE HOLD AS GOODPTS
END
-RUN
-*
TABLE FILE GOODPTS
SUM
ALLPTS AS 'TOTAL,ED-2-BED,VOLUME'
LST.BADMRN AS 'ERRORS'
-****
AVE.ALLDUR AS 'AVERAGE,MINUTES'
AVE.ALLDURHRS AS 'AVERAGE,HOURS'
COMPUTE TOTMEETN/D10 = ALLMEET + ALLNMEET; NOPRINT
ALLMEET AS 'Pts.,< 3hrs.'
ALLNMEET AS 'Pts.,> 3hrs.'
COMPUTE PCTALLMEET/D10 = (ALLMEET/TOTMEETN) * 100; AS 'PTS, % YES'
COMPUTE PCTALLNMEET/D10 = (ALLNMEET/TOTMEETN) * 100; AS 'PTS, % NO'
COMPUTE PAMFLAG/A1 = IF PCTALLMEET GE 91 AND PCTALLMEET LE 100 THEN '1'
ELSE IF PCTALLMEET EQ 90 THEN '2'
ELSE IF PCTALLMEET GE 75 AND PCTALLMEET LE 89 THEN '3'
ELSE IF PCTALLMEET GE 0 AND PCTALLMEET LE 74 THEN '4' ELSE '0'; NOPRINT
-*
BY UNIT


This is the report I am getting:
quote:

UNIT
ED-2-BED AVERAGE
AVERAGE Pts. Pts. PTS PTS
VOLUME MINUTES HOURS
<3hrs >3hrs
% YES
% NO

Trauma 14 145.00 1 11 3 79 21


I have successfully merged the total # of patients, but the other
fields (AVerage Minutes, Average Hours, Pts <3hrs, Pts >3hrs,
PTS % YES and PTS % NO) do not account for the (expected) combined
totals for ED-2BED and OTF.

Does anyone have any ideas on what I am missing? Roll Eyes

Thanks!!

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


Tomsweb
WebFOCUS 8.1.05M, 8.2.x
APP Studio, Developer Studio, InfoAssist, Dashboards, charts & reports
Apache Tomcat/8.0.36
 
Posts: 573 | Location: Baltimore, MD | Registered: July 06, 2006Report This Post
Expert
posted Hide Post
Without getting too involved, and by way of a quick question - are you recomputing totals on report completion? ON TABLE RECOMPUTE field1 field2 etc.

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Virtuoso
posted Hide Post
First thing I would do is to check the information in the hold file (GOODPTS) to see if that is correct and as expected. My suspicion is that there is some unexpected behaviour prior to the final table that produces the result.


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
 
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007Report 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     [CLOSED] Not getting correct totals when cobining totals

Copyright © 1996-2020 Information Builders