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.
The median (not average) date between January 1 and January 3 is January 2.
The mean date would be an arithmetic average and the mode date, the one that occurs most often.
2007/01/01 - 2 occurrence of date 2007/01/05 - 6 " 2007/01/06 - 8 " 2007/01/07 - 13 "
For this data, very roughly speaking, the median date would be the 2007/01/04, a date where nothing occurred. The Mean date would be 2007/01/06 and the mode date would be 2007/01/07. This is where you get the lies, damn lies and statistics from.This message has been edited. Last edited by: Alan B,
Alan. WF 7.705/8.007
Posts: 1451 | Location: Portugal | Registered: February 07, 2007
I have a table where we store document information by document type. I need a report that will tell me the average date received of the oldest 5 documents for each doc type
just have a sec so I don't have code, but your best bet would be to use date subtraction from a base date for each of the five days, calculate an average of those days elapsed, then add that number back to the base date. This should give you and "Average Date."
Regards,
Darin
In FOCUS since 1991 WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex WF Client: 77 on Linux w/Tomcat
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007
Convert the date to a number (like excel does) calculate the average of these numbers and convert the integer of the result back to a date (use the integer to prevent a date and time result)
To find the oldest five is an other challenge...
Frank
prod: WF 7.6.10 platform Windows, databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7 test: WF 7.6.10 on the same platform and databases,IE7
Posts: 2387 | Location: Amsterdam, the Netherlands | Registered: December 03, 2006
... and rather than converting the date to a number, just use the WebFOCUS internal date format (i.e. YYMD or DMYY) as it is an offset from the base date and is, essentially, a number anyway ...
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, 2004