Thanks Duane. Currently I'm not summarizing the data on the Cross tab enough to perform this test at that level.
My Cross tab groups and categorizes the specific branch data by period 1-12 with SumOfCurrentPeriod as the value.
TRANSFORM Sum(BranchMasterTbl.[SumOfCurrent Period Budget $]) AS Amount
SELECT BranchMasterTbl.Division, BranchMasterTbl.DivisionName, BranchMasterTbl.Region, BranchMasterTbl.RegionName, BranchMasterTbl.Branch, BranchMasterTbl.BranchName, BranchMasterTbl.Category, BranchMasterTbl.ScorecardLine, BranchMasterTbl.Ctr, "Budget" AS ActBud, [ReportGroup3] & "Budget" AS ReportGroupBook, Sum(BranchMasterTbl.[SumOfCurrent Period Budget $]) AS YTDAmount
FROM BranchMasterTbl
GROUP BY BranchMasterTbl.Division, BranchMasterTbl.DivisionName, BranchMasterTbl.Region, BranchMasterTbl.RegionName, BranchMasterTbl.Branch, BranchMasterTbl.BranchName, BranchMasterTbl.Category, BranchMasterTbl.ScorecardLine, BranchMasterTbl.Ctr, "Budget", [ReportGroup3] & "Budget"
ORDER BY BranchMasterTbl.Division, BranchMasterTbl.DivisionName, BranchMasterTbl.Region, BranchMasterTbl.RegionName, BranchMasterTbl.Branch, BranchMasterTbl.BranchName, BranchMasterTbl.Category, BranchMasterTbl.ScorecardLine, BranchMasterTbl.Ctr
PIVOT BranchMasterTbl.Period In (1,2,3,4,5,6,7,8,9,10,11,12);
Then within a specific line on the Report (example Budgeted Operating Profit Percent) for January I have the calculation which generates the value which could produce a result with more than 6 digits if the denominator happens to be very small for that branch and period.
=IIf(Sum(IIf([Ctr]<9,IIf([ScorecardLine]<23,IIf([ActBud]="Budget",([1]/1000*-1),0),0)))=0,0,IIf(Sum(IIf([Ctr]<9,IIf([ScorecardLine]<6,IIf([ActBud]="Budget",([1]/1000*-1),0),0)))=0,0,(Sum(IIf([Ctr]<9,IIf([ScorecardLine]<23,IIf([ActBud]="Budget",([1]/1000*-1),0),0))))/(Abs(Sum(IIf([Ctr]<9,IIf([ScorecardLine]<6,IIf([ActBud]="Budget",([1]/1000*-1),0),0)))))))
My guess is that I need to create the format within this last chunk of code which has several nested IIf statements which complicates the matter.