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] Missing On issue

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Missing On issue
 Login/Join
 
Platinum Member
posted
I have a computed field that needs a "-" when denominator is 0 to replace divide by error. These two work fine:

     COMPUTE trackobserv/D8.2% MISSING ON = IF cmp EQ 0 THEN MISSING ELSE cmptrk / cmp * 100; AS 'Percent,Tracked /,Observed'
     COMPUTE observcomp/D8.2% MISSING ON = IF evals EQ 0 THEN MISSING ELSE cmp / evals * 100; AS 'Observed,Complaints,per Call'  
However, this one does not work and displays ***** in the field.

      COMPUTE avgcompl/D7.2% MISSING ON = IF calls EQ 0 THEN MISSING ELSE TOTCOMPL / calls * 100; AS 'Average,Complaints,per Call' 
I can not figure out what's causing this...Any help would be appreciated.

Thanks,

Joe

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


WebFocus 7.7.02 WinXP
 
Posts: 236 | Registered: May 12, 2006Report This Post
Platinum Member
posted Hide Post
Two observations

1) The ***** implies that the D7.2% format is not large enought to hold the result. What is the format of TOTCOMPL?

2) You might want to put parenthesis to control the sequence of mathematical operations. I Think what you really want is (TOTCOMPL / calls) * 100. This may also be a factor in item 1) above.


Robert F. Bowley Jr.
Owner
TaRa Solutions, LLC

In WebFOCUS since 2001
 
Posts: 132 | Location: Gadsden, Al | Registered: July 22, 2005Report This Post
Platinum Member
posted Hide Post
Thanks for the response. The thing I dont understand is shouldn't the value automatically display "-" once the calls field is 0? This should be true according to the IF statement and does work for the first two. Very odd? An example that I saw is a consultants calls field had 0 which should of spawn off the MISSING ON for the compute field..It didnt and created the ****** which is actually a divide by error.

Thanks,

Joe


WebFocus 7.7.02 WinXP
 
Posts: 236 | Registered: May 12, 2006Report This Post
Virtuoso
posted Hide Post
What is the format of "calls"? If it is a Dnn.n, then maybe its value is not a real 0 but a very small value. This would explain that MISSING was not returned and the **** are due to a very high number resulting of the division by a very small one.


Daniel
In Focus since 1982
wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF

 
Posts: 1980 | Location: Tel Aviv, Israel | Registered: March 23, 2006Report 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] Missing On issue

Copyright © 1996-2020 Information Builders