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     group dates in weeks

Read-Only Read-Only Topic
Go
Search
Notify
Tools
group dates in weeks
 Login/Join
 
Member
posted
I need to group dates for 6 months to 1 year in weeks and show data sorted by those weeks
 
Posts: 5 | Registered: June 21, 2005Report This Post
Guru
posted Hide Post
If you have a Date-Time field the function HPART should do everything you need.

field2/Ifmt = HPART(DTfield,'UNIT',format);
 
Posts: 406 | Location: Canada | Registered: May 31, 2004Report This Post
Member
posted Hide Post
For Smart Dates (usage format MDY, DMY, YMD etc.) the DATEMOV function may be used to convert the date to the beginning of the week (BOW) or the end of the week (EOW):

SD_MDY2BOW/MDwY = DATEMOV(SD_MDY2,'BOW') ;

Above sample is derived from:
"(Almost) 1001 Ways to Work with Dates in WebFOCUS"
which is available from www.aviter.com

Hope this helps,
John Price
 
Posts: 25 | Location: Fountain Valley, Calif. | Registered: October 24, 2003Report This Post
Expert
posted Hide Post
Hi smart, is this still an outstanding issue for you? Have you tried the search on Focal Point posts and/or tech support documents?

Please see if the following online documents can give you any insights or hints.

How to create and sort by a WEEK_NUMBER field?
http://techsupport.informationbuilders.com/sps/42711061.html
Calculating the Week Number Based on the Date
http://techsupport.informationbuilders.com/tech/cof/cof_tcn_029.html
How to create a custom calender from a range of dates
http://techsupport.informationbuilders.com/sps/81191105.html

You will need to have a userid/password to access the above documents. Big Grin

Hope this helps.

Cheers,

Kerry
 
Posts: 1948 | Location: New York | Registered: November 16, 2004Report 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     group dates in weeks

Copyright © 1996-2020 Information Builders