J
Jody
I have looked through the threads on Fiscal Year information, and agree that
fiscal information is a pain to collect, not to mention to compare it
dynamically to the previous fiscal year. I apologize in advance for the
length of this post.
Using Office 2007, here is my problem: I need to pull Fiscal Year-to-date
(YTD) information for defined fiscal periods. Our fiscal year begins in
October.
To give you an explaination as to where I am at currently, in my query, I
have fiscal year periods defined as
Additionally, I needed to compare Fiscal Month to Fiscal Month so I came up
with this:
What I now need to be able to do is compare Fiscal YTD (last fiscal year) to
Fiscal YTD (this fiscal year). More specifically, if I am in fiscal month 4
(which would be January 2009 in my case) then I need to compare October thru
January FY 2008 to October thru January FY 2009 without getting the remaining
eight months in FY 2008 pulled into the equation.
It feels like something like this would be what I am after:
fiscal information is a pain to collect, not to mention to compare it
dynamically to the previous fiscal year. I apologize in advance for the
length of this post.
Using Office 2007, here is my problem: I need to pull Fiscal Year-to-date
(YTD) information for defined fiscal periods. Our fiscal year begins in
October.
To give you an explaination as to where I am at currently, in my query, I
have fiscal year periods defined as
Code:
Period:
IIf([DOCDATE]>#9/30/2008#,2009,IIf([DOCDATE]>#9/30/2007#,2008,IIf([DOCDATE]>#9/30/2006#,2007,IIf([DOCDATE]<#10/1/2006#,2006,2010))))
Additionally, I needed to compare Fiscal Month to Fiscal Month so I came up
with this:
Code:
FiscalMonth:
IIf(Month([docdate])=10,1,IIf(Month([docdate])=11,2,IIf(Month([docdate])=12,3,IIf(Month([docdate])=1,4,IIf(Month([docdate])=2,5,IIf(Month([docdate])=3,6,IIf(Month([docdate])=4,7,IIf(Month([docdate])=5,8,IIf(Month([docdate])=6,9,IIf(Month([docdate])=7,10,IIf(Month([docdate])=8,11,IIf(Month([docdate])=9,12,0))))))))))))
What I now need to be able to do is compare Fiscal YTD (last fiscal year) to
Fiscal YTD (this fiscal year). More specifically, if I am in fiscal month 4
(which would be January 2009 in my case) then I need to compare October thru
January FY 2008 to October thru January FY 2009 without getting the remaining
eight months in FY 2008 pulled into the equation.
It feels like something like this would be what I am after:
Code:
iif(IIf(Month([docdate])=10,1) = 1, >= 10/1 and <= 10/31,
IIF(IIf(Month([docdate])=11,2) = 2, >= 10/1 and <= 11/30)).......
[\Code]
But I am at a loss for the proper syntax or placement of this formula.
Would I just need to put it in the criteria of the [DOCDATE] field? Would I
need to build a new field called [Fiscal YTD]? Am I on the wrong path
completely?
It may be worth a mention that I am using this Access query to drive an
Excel Pivot Table. So, maybe I am on the wrong side of the fence with where
I need to build this filter constraint.