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] Count Distinct Inflated

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Count Distinct Inflated
 Login/Join
 
Member
posted
I'm attempting to perform a Count Distinct using InfoAssist version 7.7.03. I think the data source is a table in a database formatted similarly to a flat file (though I'm not 100% certain of this).

I'm trying to count distinct a tracking ID where the results column and the alert type column have certain values.

I created the formula in two steps:

1) A Define field as follows:

DEFINE OffHook = IF Result EQ 'Live Answer' OR 'Answering Machine' OR 'Answering Machine Hangup' OR 'Connected' AND AlertType NE 'I' THEN TrackingId ELSE 'NA'

2) A COMPUTE on the define field as follows:

COMPUTE UniqOffHook = CNT.DST.OffHook - 1

This formula is part of a report that contains 90-100 other DEFINE and COMPUTE formulas.

This formula seemed to work as expected for a short period of time and then inexplicably began returning elevated values (we determined that these are EXPIRED results that are not a part of our criteria for the Offhook definition).

This formula continues to work in two other reports with fewer DEFINE and COMPUTE fields.

Has anybody experienced similar issues? I feel like we need a better way to implement this logic, but we haven't come up with one yet (despite a lot of experimenting), so I welcome your suggestions.

One other note is that we cannot use filters to apply the conditions to apply the conditions because it would disrupt other calculations in the report.

Thank you very much in advance.

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


InfoAssist 7.7.3
Windows, All Outputs
 
Posts: 9 | Registered: August 30, 2011Report This Post
Master
posted Hide Post
I think the 'elevated' results are not because of the cnt.dst but because to the selection.
( which is probably bigger then you expect ).

...and

if you use MISSING instead of 'NA' you don't have to substract 1 in your compute. ;-)


_____________________
WF: 8.0.0.9 > going 8.2.0.5
 
Posts: 668 | Location: Veghel, The Netherlands | Registered: February 16, 2010Report This Post
Guru
posted Hide Post
Please review the following regarding "MISSING" data. This might be what you are referring to as expired or your 'NA' as Dave indicates above.

On the IBI Website - Technical Support Center the following explanation of MISSING can be found:
Missing Field Values

To get to the above URL.....
Technical Support Center
- click on Search Technical Documentation

Enter search criteria and WebFOCUS version for whatever you are looking for. ( You will need to be logged on to the TechSupport site.

Thank your for participating in the Focal Point Forum,

Tamra Colangelo
Focal Point Moderator
Information Builders

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


WebFOCUS 8x - BI Portal, Developer Studio, App Studio, Excel, PDF, Active Formats and HTML5
 
Posts: 487 | Location: Toronto | Registered: June 23, 2009Report This Post
Member
posted Hide Post
Thank you Dave and Tamra.

I work with T, and she has asked me to post the following:

We tried the following and it didn’t work:

IF ALERTSENT.ALERTSENT.Result EQ 'Live Answer' OR 'Answering Machine' OR 'Answering Machine Hangup' OR 'Connected' AND ALERTSENT.ALERTSENT.AlertType NE 'I' THEN ALERTSENT.ALERTSENT.TrackingId ELSE MISSING

Error message -- > (FOC171) Type of calculation is not specified on left side:

MISSING ON = IF ALERTSENT.ALERTSENT.Result EQ 'Live Answer' OR 'Answering Machine' OR 'Answering Machine Hangup' OR 'Connected' AND ALERTSENT.ALERTSENT.AlertType NE 'I' THEN ALERTSENT.ALERTSENT.TrackingId ELSE MISSING

Error message -- >(FOC224) Syntax error: ON

We welcome additional input.

Thank you.
 
Posts: 2 | Registered: January 13, 2017Report This Post
Guru
posted Hide Post
Does the master file description have MISSING=ON for the fields used in the report?

I will provide an example shortly

Thank your for participating in the Focal Point Forum,

Tamra Colangelo
Focal Point Moderator
Information Builders

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


WebFOCUS 8x - BI Portal, Developer Studio, App Studio, Excel, PDF, Active Formats and HTML5
 
Posts: 487 | Location: Toronto | Registered: June 23, 2009Report This Post
Guru
posted Hide Post
Missing values can be represented with an additional attribute in the Master File Description ( Synonym )

FIELDNAME=RETURNS, ALIAS=RTN, FORMAT=I3, MISSING=ON, $

Are you able to review your master to see if the fields that you are using contain this attribute?

Thank your for participating in the Focal Point Forum,

Tamra Colangelo
Focal Point Moderator
Information Builders

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


WebFOCUS 8x - BI Portal, Developer Studio, App Studio, Excel, PDF, Active Formats and HTML5
 
Posts: 487 | Location: Toronto | Registered: June 23, 2009Report This Post
Member
posted Hide Post
Tamra:

Thank you for your responses.

We've reviewed the underlying code and determined that the attribute is not present, and we do not have the ability to edit the master file.

In light of this, we've decided to delete virtual field and not try to report on it after all.

(That said, if anyone has suggestions for how we might still be able to do this, please let us know)

Thank you for your engagement.


WebFOCUS 8
Windows, All Outputs
 
Posts: 2 | Registered: January 13, 2017Report 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] Count Distinct Inflated

Copyright © 1996-2020 Information Builders