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] Fiscal month date calculation

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Fiscal month date calculation
 Login/Join
 
Silver Member
posted
Hi all,

can someone plz let me know how to calculate first day & end day of the previous fiscal month

Note: January last week's saturday is considered as Fiscal year end

This message has been edited. Last edited by: <Kathryn Henning>,
 
Posts: 24 | Registered: January 11, 2012Report This Post
Expert
posted Hide Post
Hello a03654, A great place to start is, from within Dev Studio: Press F1 and enter "DATE" in the index, follow down to "date and time functions, DATEMOV". You'll find a lot of date functions. But, be sure that the gregorian BOM is the same as you Fiscal BOM...
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Silver Member
posted Hide Post
Hi Doug,

Thanks for the reply.

i have got the table name as T_DB2U_ACCT_DATE and Accounting month, accounting date fields as MO_I, ACCT_D.
Can someone please provide a logic to calcluate previous fiscal month's start, end dates.
 
Posts: 24 | Registered: January 11, 2012Report This Post
Platinum Member
posted Hide Post
Since I can't see your date formats, I cant't reply with exact code. I would do the following using the DATEADD function. Despite the name it does subtractions by using a negative number.

Since you have the current accounting month, set up a date field for the first of that month. Then create two previous month date fields. Into one of them subtract one month from your new first of the month field to give you the first of the previous accounting month and into the other subtract one day to give you the last day of the previous month.


WebFOCUS 7.7.05 (Someday 8)
Windows 7, All Outputs
In Focus since 1983.
 
Posts: 103 | Registered: April 27, 2011Report 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] Fiscal month date calculation

Copyright © 1996-2020 Information Builders