Hello everyone!
I am comparing Sales from Last Year Fiscal YeartoDate [EX10/01/2011) - 8/16/2012] with Current Fiscal YeartoDate [Ex:10/01/2012 - 08/16/2013]
Fiscal starts from October.
Below is the Record selection that I am using:
{Table.InvoiceDate} in [{@LastFiscalYear_From} to {@LastFiscalYear_To }]
or
{Table.InvoiceDate} in [{@ThisFiscalYear_From } to {@ThisFiscalYear_To}]
Where;
LastFiscalYear_From:
If ({Table.Fiscalyear}) = Year(currentdate)-1
then
Date(Year(CurrentDate)-2, 10, 01)
LastFiscalYear_To :
If {Table.Fiscalyear} = Year(Currentdate) - 1
then
Date(Year(Currentdate)-1, Month(Currentdate), Day(Currentdate))
ThisFiscalYear_From :
If { Table.fiscalyear} = Year(Currentdate)
then
Date(Year(Currentdate)-1, 10, 1)
ThisFiscalYear_To :
CurrentDate
SalesThisFiscalYear :
If {Table.Fiscalyear} = Year(Currentdate)
then {Table.sales}
SalesLastfiscalYear :
If {Table.Fiscalyear} = Year(Currentdate) - 1
then {Table.sales}
The problem is; sales for this Fiscalyear match but the last Fiscalyear sales does not.
There is something very silly that I am missing. I have spent hours on this but could not figure out. If someone can help.
I am comparing Sales from Last Year Fiscal YeartoDate [EX10/01/2011) - 8/16/2012] with Current Fiscal YeartoDate [Ex:10/01/2012 - 08/16/2013]
Fiscal starts from October.
Below is the Record selection that I am using:
{Table.InvoiceDate} in [{@LastFiscalYear_From} to {@LastFiscalYear_To }]
or
{Table.InvoiceDate} in [{@ThisFiscalYear_From } to {@ThisFiscalYear_To}]
Where;
LastFiscalYear_From:
If ({Table.Fiscalyear}) = Year(currentdate)-1
then
Date(Year(CurrentDate)-2, 10, 01)
LastFiscalYear_To :
If {Table.Fiscalyear} = Year(Currentdate) - 1
then
Date(Year(Currentdate)-1, Month(Currentdate), Day(Currentdate))
ThisFiscalYear_From :
If { Table.fiscalyear} = Year(Currentdate)
then
Date(Year(Currentdate)-1, 10, 1)
ThisFiscalYear_To :
CurrentDate
SalesThisFiscalYear :
If {Table.Fiscalyear} = Year(Currentdate)
then {Table.sales}
SalesLastfiscalYear :
If {Table.Fiscalyear} = Year(Currentdate) - 1
then {Table.sales}
The problem is; sales for this Fiscalyear match but the last Fiscalyear sales does not.
There is something very silly that I am missing. I have spent hours on this but could not figure out. If someone can help.