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] calc unique days of activity

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] calc unique days of activity
 Login/Join
 
Member
posted
Trying to count the number of unique days of activity, and display as a column next to persons name in summary. Looking at performance metrics on a daily basis.

Sample Date:
  
Person  Step  Date Completed
Bill     1    10/01/2012
Bill     2    10/02/2012
Bob      1    10/01/2012
Bob      2    10/01/2012
Bob      3    10/01/2012
Bob      4    10/01/2012
Barb     1    10/01/2012
Barb     2    10/02/2012
Barb     3    10/02/2012


Summary View:
 
Person Count Steps Completed   Active Days
Bill             2               2
Bob              4               1
Barb             3               2


So it appears Bob is more active, completeing more steps, in less time. How do I add a count column (active days) so it counts only unique days?

Thanks

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


wFDS: 7.7.03, OS: Windows, Output: Mostly Excel
 
Posts: 22 | Registered: November 15, 2012Report This Post
Expert
posted Hide Post
This might help:

CNT.DST.
- Counts the number of distinct values within a field.


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Gold member
posted Hide Post
One way:

TABLE FILE PERSTBL
PRINT PERSON STEP COMPDATE
BY PERSON NOPRINT BY COMPDATE NOPRINT
ON TABLE HOLD AS H1
END
-RUN
DEFINE FILE H1
DTCNT/I2 = IF PERSON   NE LAST PERSON   THEN 1
      ELSE IF COMPDATE EQ LAST COMPDATE THEN 0 ELSE 1;
END
TABLE FILE H1
SUM CNT.DST.STEP DTCNT
BY PERSON
END
-RUN 
 


WebFOCUS 8105
Windows;
DB2, UDB, SQL Server, Oracle
FOCUS-WebFOCUS since 1981
 
Posts: 84 | Registered: December 13, 2005Report 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] calc unique days of activity

Copyright © 1996-2020 Information Builders