Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Computing Month/Quarter/Yearly Date Boundaries
Go
New
Search
Notify
Tools
Reply
  
[CLOSED] Computing Month/Quarter/Yearly Date Boundaries
 Login/Join
 
Gold member
posted
ACROSS is great, but in order to use it you have to limit the boundaries on the data from your masterfile as well. I have a start and end date ('MYY') for the report, but if someone puts in 7/2018 and then requests a quarterly across report, then they're going to get a quarter with only a month's worth of data aggregated.

For my WHERE, I need to convert that 7/2018 to 4/2018. I tried HDATE(HDATE(START, 'QYY'), 'MYY'), but it appears you can't get from QYY to MYY, which is not surprising. But this has to be a problem faced by anyone using ACROSS and I know there's a standard solution to this. Anyone care to share it?

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


WebFOCUS 8
Windows, All Outputs
 
Posts: 70 | Registered: February 08, 2018Reply With QuoteReport This Post
Virtuoso
posted Hide Post
What happens if they enter 6/2018? Will you want it to go back to 3/2018? In other words is the offset months always 3 months or would you prefer to always start with the beginning quarter that month falls into?


WebFOCUS 8204, Unix, Windows
 
Posts: 1617 | Location: New York City | Registered: December 30, 2015Reply With QuoteReport This Post
Gold member
posted Hide Post
The beginning of the quarter. However, I realize that I've misunderstood the error log and no longer need this. It is an interesting intellectual problem though.


WebFOCUS 8
Windows, All Outputs
 
Posts: 70 | Registered: February 08, 2018Reply With QuoteReport This Post
Virtuoso
posted Hide Post
The question that you may also ask yourself is : does the quarters are always Jan-Mar, Apr-Jun, Jul-Sep, Oct-Dec ?

The answer is NO

Depending on the organization Fiscal calendar, the quarter may change.
If the fiscal year starts in Nov and not Jan, then your quarters are : Nov-Jan, Feb-Apr, Mai-Jul, Aug-Oct

So having a "standard solution" this this may not be true.

You should better defined your own quarters based on the organization fiscal calendar. You can then have global variable assigned with proper date range according to the situation.


WF versions : Prod 8.2.0.1M gen 240, Dev 8.2.04 gen 48, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
 
Posts: 2127 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Computing Month/Quarter/Yearly Date Boundaries

Copyright © 1996-2018 Information Builders, leaders in enterprise business intelligence.