cancel
Showing results for 
Search instead for 
Did you mean: 

Create a date iterator object

Former Member
0 Kudos

Fiscal Year

Fiscal Quarter
FQ Start DateFQ End Date
2012110/1/201112/31/2011
201221/1/20123/31/2012
201234/1/20126/30/2012
201247/1/20129/30/2012

I have a report matching the above format showing the first and last day of our fiscal years (start in October here).

I'm wanting to create a table that populates every date within the fiscal quarter. It would look like this:

Fiscal YearFiscal Quarter
Date
2012

1

10/1/2011
2012110/2/2011
2012110/3/2011
2012110/4/2011

....

2012112/30/2011
2012112/31/2011
201221/1/2012
201221/2/2012

I assume I'd utilize the DateRelative() function and have a reset argument somehow.

Any Idea on how I'd accomplish this?

Thanks!

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

What's your data source? If you're over a normal database (rather than BW), then create an extra data provider to just return the list of dates that you want from your calendar table (if you have one - if you don't, you should create one given you don't have a January to December fiscal year). Merge the queries on date and then use the date from the new data provider, qualifying it with the query name, i.e. =[Query].[Date Object] rather than just =[Date Object]

Former Member
0 Kudos

Hi,

try usnig the TimeDim() function to generate all the dates needed.

[alldates ] = TimeDim([FQ Start Date];Daily)

Regards,

Rogerio