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. Moving forward, myibi is our community platform to learn, share, and collaborate. We have the same Focal Point forum categories in myibi, so you can continue to have all new conversations there. If you need access to myibi, contact us at myibi@ibi.com and provide your corporate email address, company, and name.


Connect to myibi
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Trying to count the matters based on date range-Help needed ASAP

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Trying to count the matters based on date range-Help needed ASAP
 Login/Join
 
Silver Member
posted
I am trying to count the number of matter beased on the date ranges.
I have to dates open date and the resolved date.
I am looking at those matters which are active i.e where resolved date is Null. This is one senario.

But i am facing problem when the open date and resolved date does not fall on the same month

Eg - if the open date of a particular matter is 02 Feb 2010 and the matter resolved date is 02 May 2010, so i need to get the count for that matter to be one for the month of Feb, Mar, and Apr.

can anyone please help me wiht this

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


769 Excel,PDF and HTML
 
Posts: 35 | Location: Bangalore | Registered: March 27, 2008Report This Post
Virtuoso
posted Hide Post
If your dates are SmartDates, you can use function DATEDIF to calculate the number of months between two dates. If the resolved date is NULL you could use the current date as the resolved-date for determining how many months the issue has been open.

NUMBER_OF_MONTHS/I5 = DATEDIF(open-date,resolved-date,'M');


EDIT: The above will give you whole months. If you prefer to include fractions of a month, then use DATEDIF to calculate the difference in days and divide by 30 to get a close approximation of months with fractions thereof.

NUMBER_OF_DAYS/I5 = DATEDIF(open-date,resolved-date,'D');
NUMBER_OF_MONTHS/F5.1 = NUMBER_OF_DAYS / 30 ;

This message has been edited. Last edited by: Dan Satchell,


WebFOCUS 7.7.05
 
Posts: 1213 | Location: Seattle, Washington - USA | Registered: October 22, 2007Report This Post
Expert
posted Hide Post
I would suggest not putting "ASAP" in the forum post subject, specially since most of the people helping you are in a time zone where we're still sleeping.


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
Virtuoso
posted Hide Post
Good point.



Prod/Dev: WF Server 8008/Win 2008 - WF Client 8008/Win 2008 - Dev. Studio: 8008/Windows 7 - DBMS: Oracle 11g Rel 2
Test: Dev. Studio 8008 /Windows 7 (Local) Output:HTML, EXL2K.
 
Posts: 1533 | Registered: August 12, 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] Trying to count the matters based on date range-Help needed ASAP

Copyright © 1996-2020 Information Builders