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.
Are there any previouse year, period week functions available in webfocus to use with time dimension to get previose year period and weeks?
I have two tables
Sales(TIMLKEY, Store, Sale Amounnt)
TIME [TIMLKEY, FY(TEXT), Period(TEXT), WEEK(TEXT), DATE(DATETIME), FYPW(TEXT), FYP(TEXT)]
FY = FISCALYEAR 2010, FYPW = FISCALYEAR PERIOD WEEK SAMPLE: 2010121
I Hardtime manipulating time I would appriciate if someone can give me a clue/Hint for calculating previose periods that are in text format in my time table:
My Reprot looks like this
My Report should determin the what week of current period
Current week = previose week Before sat
Store Pervious period 3 Pervious period 2 Pervious period 1 CurrentPeriod Week1 CurrentPeriod Week2 CurrentPeriod Week3
1 Sum(Sales) Sum(Sales) Sum(Sales) Sum(Sales) Sum(Sales) Sum(Sales)
2 Sum(Sales) Sum(Sales) Sum(Sales) Sum(Sales) Sum(Sales) Sum(Sales)
This message has been edited. Last edited by: Kerry,
Click on the "Search the Technical Documentation Library" link in the very top-right corner of this forum page and search for "datetime funtions" in the Technical Documentation box.
WebFOCUS 7.7.05
Posts: 1213 | Location: Seattle, Washington - USA | Registered: October 22, 2007
Arif, those don't seem to be "REAL" dates so date functions wont work with them correctly.
Couldn't you just manipulate the numbers separately to achieve what you want? We have similar needs over here and I found it easier to create vars and do the math myself and build variables that combine those pieces to use for my selections.
In our case, since our reporting is based on different calendars, (normal calendar, fiscal calendar and retail calendar) we created a file that stores the actual dates as well as the different pieces we need for the other calenders , (Fiscal year, fiscal quarter, retail year, retail period, etc.). This works for us because our system also uses this data to build our DW files, in which all of the dates get converted to the particular calendar the file will be reporting on. IE. If the DW file is going to be used for retail reporting, all the dates will be converted to the retail calendar which is Year, Season, quarter, period, week, and day. so today would be converted to: 20100709 -> year:2010 Season:1 Quarter:2 Period(month):6 Week:1 Day:6.
In your case however, you may need to do the reverse. Get your date parts together and then convert them to an actual date and use that to do your selections, etc.
Lloyd Prendergast Michael Kors (USA), Inc. Phone: 201-453-5076 Fax: 646-354-4776 Lloyd.Prendergast@Michaelkors.com
there is a great book available handling 1001 things about dates in webfocus. It coasts something like 25 U$ and worth all of that. you should buy it and you can solve all these things and many more
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