I thought the set-up was good to go when I realized, if I use >=GetFiscalYear(DateAdd("yyyy", -3, Date()), then I get multiple lines; however, if I change that to >=GetFiscalYear(DateAdd("yyyy", -0, Date()) then I get singular lines which works great until I try to total the years to get a 4 year total. See attached.
I have tried to calculate the total which works fine where there is values in all the fields, I tried it two different ways with the same result
option 1 - 4yr Sales: =FY2015 + FY2014 + FY2013 + FY2012
option 2 - 4yr Sales: Sum([FY2015] + [FY2014] + [FY2013] + [FY2012])
As I said some of the fields don't have values and these set-ups will not return a value.
So I thought I might go into create another subQuery [see sub_queryFYSales-design.jpg] that calculates just the 4 year total and pulls that into this query. I ran into the same problem of getting up to 4 lines for 1 product at one customer, a line for 2012, 2013, 2014, and 2015.
Then I decided if I could through a 0 value into the null fields, so I tried
FY2015: IIF([FYSales] is null, 0, [FYSales])
but get a Syntax error (comma) in query expression